Luna::VG::new_font_atlas
Ref< IFontAtlas > new_font_atlas(Font::IFontFile *font, u32 index, RHI::IDevice *device=nullptr)
Creates one new font atlas.
Parameters
-
in font
The font file data used to pack font glyph.
-
in index
The index of the font to use in font file data.
-
in device
The RHI device bound to the font atlas. This is used to create RHI buffers used by the draw list.
If this is nullptr
, the main device (device fetched from RHI::get_main_device) will be used.
Return value
Returns the created font atlas.