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

◆ ascender()

uint32_t MayaFlux::Portal::Text::GlyphAtlas::ascender ( ) const

Ascender in pixels for this atlas's pixel_size.

Definition at line 60 of file GlyphAtlas.cpp.

61{
62 FT_Face face = m_face.get_face();
63 if (!face || face->size == nullptr)
64 return m_pixel_size;
65 const int32_t a = face->size->metrics.ascender >> 6;
66 return a > 0 ? static_cast<uint32_t>(a) : m_pixel_size;
67}
size_t a
FT_Face get_face() const
Raw FT_Face handle for use by GlyphAtlas.
Definition FontFace.hpp:57

References a, MayaFlux::Portal::Text::FontFace::get_face(), m_face, and m_pixel_size.

Referenced by MayaFlux::Portal::Text::press(), and MayaFlux::Portal::Text::repress().

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