| 1670 | } |
| 1671 | |
| 1672 | int 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 | |
| 1682 | int GfxRenderer::getTextHeight(const int fontId) const { |
| 1683 | const auto fontIt = fontMap.find(fontId); |
no test coverage detected