MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_or_rasterize() [1/2]

const GlyphMetrics * MayaFlux::Portal::Text::GlyphAtlas::get_or_rasterize ( FT_UInt  glyph_index)

Return metrics for a glyph, rasterizing it into the atlas if needed.

Parameters
glyph_indexFT_UInt glyph index (from FT_Get_Char_Index).
Returns
Pointer to cached GlyphMetrics, or nullptr if rasterization fails.

Definition at line 18 of file GlyphAtlas.cpp.

19{
20 return get_or_rasterize_from(m_face, glyph_index);
21}
const GlyphMetrics * get_or_rasterize_from(FontFace &face, FT_UInt glyph_index)

References get_or_rasterize_from(), and m_face.

Referenced by MayaFlux::Portal::Text::lay_out().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: