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

Method getTextHeight

lib/GfxRenderer/GfxRenderer.cpp:1682–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1680}
1681
1682int GfxRenderer::getTextHeight(const int fontId) const {
1683 const auto fontIt = fontMap.find(fontId);
1684 if (fontIt == fontMap.end()) {
1685 LOG_ERR("GFX", "Font %d not found", fontId);
1686 return 0;
1687 }
1688 return fontIt->second.getData(EpdFontFamily::REGULAR)->ascender;
1689}
1690
1691void GfxRenderer::drawTextRotated90CW(const int fontId, const int x, const int y, const char* text, const bool black,
1692 const EpdFontFamily::Style style) const {

Callers 4

drawSideButtonHintsMethod · 0.80
drawHeaderMethod · 0.80
renderMethod · 0.80
renderPreviewPaneMethod · 0.80

Calls 2

endMethod · 0.80
getDataMethod · 0.80

Tested by

no test coverage detected