better interchar handling for MovableType

This commit is contained in:
minjaesong
2024-05-23 14:26:22 +09:00
parent 95dfcb91b5
commit 2a15785f57
2 changed files with 6 additions and 4 deletions

View File

@@ -1182,7 +1182,7 @@ class TerrarumSansBitmap(
// is this glyph NOT a diacritic?
else if (thisProp.writeOnTop < 0) {
// apply interchar only if this character is NOT a control char
val thisInterchar = if (thisChar.isLetter() || Character.isWhitespace(thisChar)) interchar else 0
val thisInterchar = if (thisChar.isLetter()) interchar else 0
posXbuffer[charIndex] = -thisProp.nudgeX +
when (itsProp.alignWhere) {