MayaFlux 1.0.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 79 of file GlyphAtlas.cpp.

80{
81 FT_Face face = m_face.get_face();
82 if (!face || face->size == nullptr)
83 return m_pixel_size;
84 const int32_t a = face->size->metrics.ascender >> 6;
85 return a > 0 ? static_cast<uint32_t>(a) : m_pixel_size;
86}
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::TextRun::caret(), MayaFlux::Portal::Text::TextRun::content_height(), 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: