MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / resolveSdCardStyle

Function resolveSdCardStyle

lib/GfxRenderer/GfxRenderer.cpp:20–22  ·  view source on GitHub ↗

* Resolves the requested style to the best available style in the given SD card font. * Falls back gracefully when the font lacks the requested variant. */

Source from the content-addressed store, hash-verified

18 * Falls back gracefully when the font lacks the requested variant.
19 */
20uint8_t resolveSdCardStyle(const SdCardFont& font, const EpdFontFamily::Style style) {
21 return font.resolveStyle(static_cast<uint8_t>(style));
22}
23} // namespace
24
25namespace {

Callers 3

getSpaceWidthMethod · 0.85
getSpaceAdvanceMethod · 0.85
getTextAdvanceXMethod · 0.85

Calls 1

resolveStyleMethod · 0.45

Tested by

no test coverage detected