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

◆ getScaledMetrics()

FontRenderer::ScaledMetrics fl::FontRenderer::getScaledMetrics ( ) const

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

200 {
202 if (!mFont) return result;
203
204 FontMetrics metrics = mFont->getMetrics();
205 result.ascent = static_cast<float>(metrics.ascent) * mScale;
206 result.descent = static_cast<float>(metrics.descent) * mScale;
207 result.lineGap = static_cast<float>(metrics.lineGap) * mScale;
208 return result;
209}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References FontRenderer(), fl::FontMetrics::ascent, fl::FontMetrics::descent, getScaledMetrics(), fl::FontMetrics::lineGap, mFont, and mScale.

Referenced by getScaledMetrics().

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