mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 20:01:52 +09:00
fix: devanagari candrabindu and anusvara off by one pixel
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user