mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-12 17:04:03 +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) {
|
if (keycode == Input.Keys.ENTER) {
|
||||||
textbuf.add(CodepointSequence())
|
textbuf.add(CodepointSequence())
|
||||||
}
|
|
||||||
else if (keycode and 128 == Input.Keys.BACKSPACE) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
textbuf.last().add(keycode + 0xF3000)
|
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")
|
if (debug) println("${code.charInfo()}: Width $width, tags $tags")
|
||||||
|
|
||||||
/*val isDiacritics = pixmap.getPixel(codeStartX, codeStartY + H - 1).and(0xFF) != 0
|
/*val isDiacritics = pixmap.getPixel(codeStartX, codeStartY + H - 1).and(0xFF) != 0
|
||||||
if (isDiacritics)
|
if (isDiacritics)
|
||||||
glyphWidth = -glyphWidth*/
|
glyphWidth = -glyphWidth*/
|
||||||
|
|
||||||
|
|
||||||
glyphProps[code] = GlyphProps(width, tags)
|
glyphProps[code] = GlyphProps(width, tags)
|
||||||
|
|
||||||
// extra info
|
// extra info
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user