mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
probably useable now
This commit is contained in:
@@ -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 |
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user