fix: devanagari candrabindu and anusvara off by one pixel

This commit is contained in:
minjaesong
2026-02-25 03:10:43 +09:00
parent cdc3499f38
commit 86699af92d

View File

@@ -1237,6 +1237,9 @@ class TerrarumSansBitmap(
if (itsProp.alignWhere == GlyphProps.ALIGN_RIGHT) { if (itsProp.alignWhere == GlyphProps.ALIGN_RIGHT) {
posXbuffer[nonDiacriticCounter] + anchorPoint + (itsProp.width + 1).div(2) posXbuffer[nonDiacriticCounter] + anchorPoint + (itsProp.width + 1).div(2)
} else { } else {
if (thisChar in 0x900..0x902)
posXbuffer[nonDiacriticCounter] + anchorPoint - (W_VAR_INIT + 1) / 2
else
posXbuffer[nonDiacriticCounter] + anchorPoint - HALF_VAR_INIT posXbuffer[nonDiacriticCounter] + anchorPoint - HALF_VAR_INIT
} }
} }