This commit is contained in:
jpirnay
2026-04-29 17:17:24 +02:00
parent 12f16e9b28
commit 4cc793397f
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ void TextBlock::render(const GfxRenderer& renderer, const int fontId, const int
}
if ((currentStyle & EpdFontFamily::STRIKETHROUGH) != 0) {
// Arbitrary vertical offset of 4px from the font midline to avoid colliding with typical diacritics; adjust as needed
// Arbitrary vertical offset of 4px from the font midline to avoid colliding with typical diacritics; adjust as
// needed
const int strikeY = y + renderer.getFontAscenderSize(fontId) / 2 + 4;
renderer.drawLine(startX, strikeY, startX + lineWidth, strikeY, 2, true);
}