diff --git a/FontTestGDX/src/TypewriterGDX.kt b/FontTestGDX/src/TypewriterGDX.kt index d6537ee..3a9b981 100644 --- a/FontTestGDX/src/TypewriterGDX.kt +++ b/FontTestGDX/src/TypewriterGDX.kt @@ -57,6 +57,10 @@ class TypewriterGDX(val width: Int, val height: Int) : Game() { 62, // space 184,164,171,170, // >HON (ASC_3-90) 62, // space + 74,48, // ;t (HANG_BEO) + 43,12, // o5 (HANG_YU) + 38,48,51, // jtw (HANG_EOL) + 164, // H (ASC_-) 75,34, // 'f (HANG_TA) 40,34, // lf (HANG_JA) 39,32 // kd (HANG_GI) @@ -67,13 +71,15 @@ class TypewriterGDX(val width: Int, val height: Int) : Game() { private val printableKeys = ((Input.Keys.NUM_0..Input.Keys.NUM_9) + (Input.Keys.A..Input.Keys.PERIOD) + 62 + (Input.Keys.BACKSPACE..Input.Keys.SLASH)).toHashSet() fun acceptKey(keycode: Int) { -// println("[TypewriterGDX] Accepting key: $keycode") + println("[TypewriterGDX] Accepting key: $keycode") if (keycode == Input.Keys.ENTER) { textbuf.add(CodepointSequence()) } else if (printableKeys.contains(keycode and 127)) { - textbuf.last().add(keycode + 0xF3000) + val cp = keycode + 0xF3000 + textbuf.last().add(cp) +// println("[TypewriterGDX] width: ${font.glyphProps[cp]}") } } diff --git a/assets/typewriter/typewriter_ko_3set-390.tga b/assets/typewriter/typewriter_ko_3set-390.tga index 45cd7e9..f03c251 100644 Binary files a/assets/typewriter/typewriter_ko_3set-390.tga and b/assets/typewriter/typewriter_ko_3set-390.tga differ diff --git a/work_files/typewriter_input/alphnum_glyphs_master.kra b/work_files/typewriter_input/alphnum_glyphs_master.kra index 057168d..dee8011 100644 Binary files a/work_files/typewriter_input/alphnum_glyphs_master.kra and b/work_files/typewriter_input/alphnum_glyphs_master.kra differ diff --git a/work_files/typewriter_input/alphnum_glyphs_resized.kra b/work_files/typewriter_input/alphnum_glyphs_resized.kra new file mode 100644 index 0000000..9021b8f Binary files /dev/null and b/work_files/typewriter_input/alphnum_glyphs_resized.kra differ diff --git a/work_files/typewriter_input/typewriter_ko_3set-390.psd b/work_files/typewriter_input/typewriter_ko_3set-390.psd index bd05410..19eb62c 100644 Binary files a/work_files/typewriter_input/typewriter_ko_3set-390.psd and b/work_files/typewriter_input/typewriter_ko_3set-390.psd differ