Luna::VG::IFontAtlas
Represents one font glyph packer that packs font glyph data to one.
interface Luna::VG::IFontAtlas : public virtual Interface
Base type
Member functions
-
Removes all glyphs in the font atlas, but keeps the internal storage, so that they can be reused to store new glyphs.
-
virtual Font::IFontFile * get_font(u32 *index)=0
Gets the font file data bound to this font atlas.
-
virtual void set_font(Font::IFontFile *font, u32 index)=0
Sets the font bound to this font atlas. The will reset the font atlas.
-
virtual R< RHI::IBuffer * > get_shape_buffer()=0
Gets the shape buffer that stores the glyph contour commands.
-
virtual Span< const f32 > get_shape_points()=0
Gets the shape points data.
-
Queries the information of the specified glyph, and optionally packs the glyph to this atlas if it is not packed yet.