tokenising pre-hyphen-ated words

This commit is contained in:
minjaesong
2024-04-03 14:47:18 +09:00
parent 06782fdc55
commit 32c859fdf8
2 changed files with 7 additions and 1 deletions

View File

@@ -493,10 +493,14 @@ class MovableType(
appendToBuffer(c0) appendToBuffer(c0)
} }
else if (c0 == 0x0A) { else if (c0 == 0x0A) { // \n
sendoutBox() sendoutBox()
proceedToNextLine() proceedToNextLine()
} }
else if (c0 == 0x2D) { // hyphen
appendToBuffer(c0)
sendoutBox()
}
else if (c0.isWhiteSpace()) { else if (c0.isWhiteSpace()) {
if (cM != null && !cM.isWhiteSpace()) if (cM != null && !cM.isWhiteSpace())
sendoutBox() sendoutBox()

View File

@@ -266,6 +266,8 @@ class TerrarumSansBitmap(
buildWidthTableFixed() buildWidthTableFixed()
buildWidthTableInternal() buildWidthTableInternal()
glyphProps[0xAD] = GlyphProps(-15) // what the fuck's going on that made this necessary??
/*if (!noShadow) { /*if (!noShadow) {
makeShadowForSheet(pixmap) makeShadowForSheet(pixmap)