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

Method getLineHeight

lib/GfxRenderer/GfxRenderer.cpp:1672–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1670}
1671
1672int GfxRenderer::getLineHeight(const int fontId) const {
1673 const auto fontIt = fontMap.find(fontId);
1674 if (fontIt == fontMap.end()) {
1675 LOG_ERR("GFX", "Font %d not found", fontId);
1676 return 0;
1677 }
1678
1679 return fontIt->second.getData(EpdFontFamily::REGULAR)->advanceY;
1680}
1681
1682int GfxRenderer::getTextHeight(const int fontId) const {
1683 const auto fontIt = fontMap.find(fontId);

Callers 15

emitHorizontalRuleMethod · 0.80
addLineToPageMethod · 0.80
makePagesMethod · 0.80
drawListMethod · 0.80
drawTabBarMethod · 0.80
drawRecentBookCoverMethod · 0.80
drawButtonMenuMethod · 0.80
drawPopupMethod · 0.80
drawTextFieldMethod · 0.80
drawKeyboardKeyMethod · 0.80
drawTabBarMethod · 0.80
drawRecentBookCoverMethod · 0.80

Calls 2

endMethod · 0.80
getDataMethod · 0.80

Tested by

no test coverage detected