probably useable now

This commit is contained in:
minjaesong
2021-11-05 22:47:59 +09:00
parent 947c966660
commit 699981d9a2
5 changed files with 2 additions and 3 deletions

View File

@@ -54,9 +54,6 @@ class TypewriterGDX(val width: Int, val height: Int) : Game() {
if (keycode == Input.Keys.ENTER) {
textbuf.add(CodepointSequence())
}
else if (keycode and 128 == Input.Keys.BACKSPACE) {
}
else {
textbuf.last().add(keycode + 0xF3000)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 320 KiB

View File

@@ -223,12 +223,14 @@ class TerrarumTypewriterBitmap(
}
}
if (code and 127 == 67) width *= -1 // the backspace key
if (debug) println("${code.charInfo()}: Width $width, tags $tags")
/*val isDiacritics = pixmap.getPixel(codeStartX, codeStartY + H - 1).and(0xFF) != 0
if (isDiacritics)
glyphWidth = -glyphWidth*/
glyphProps[code] = GlyphProps(width, tags)
// extra info