FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getAdvance()

float fl::FontRenderer::getAdvance ( i32 codepoint) const

Definition at line 225 of file truetype.cpp.hpp.

225 {
226 if (!mFont) return 0.0f;
227 GlyphMetrics metrics = mFont->getGlyphMetrics(codepoint);
228 return static_cast<float>(metrics.advanceWidth) * mScale;
229}

References fl::GlyphMetrics::advanceWidth, mFont, and mScale.

Referenced by measureString().

+ Here is the caller graph for this function: