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

Method ensureSdCardFontReady

lib/GfxRenderer/GfxRenderer.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void GfxRenderer::ensureSdCardFontReady(int fontId, const char* utf8Text, uint8_t styleMask) const {
58 auto it = sdCardFonts_.find(fontId);
59 if (it != sdCardFonts_.end()) {
60 int missed = it->second->buildAdvanceTable(utf8Text, styleMask);
61 if (missed > 0) {
62 LOG_DBG("GFX", "ensureSdCardFontReady: %d glyph(s) not found", missed);
63 }
64 }
65}
66
67void GfxRenderer::ensureSdCardFontReady(int fontId, const std::vector<std::string>& words, bool includeHyphen,
68 uint8_t styleMask) const {

Callers 2

layoutAndExtractLinesMethod · 0.80
loadPageAtOffsetMethod · 0.80

Calls 2

endMethod · 0.80
buildAdvanceTableMethod · 0.80

Tested by

no test coverage detected