fix(graphics): decode Japanese text as glyph codes #472
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!472
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/glyph-text"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Japanese text indexes the ports' own glyph sheets (0x1c), not Shift-JIS.
glyph_codes,Archive::glyph_sheets,find_glyph,Archive::decode_glyphs_png: sheet layout as the engine's font loader andQUERY_CHAR_METRICS(later sheet wins on overlap, Sega CD JP sheet 3).Text::to_display_string: codes below0x78stay characters (ASCII, runes), kana and kanji becomeU+F0000 + code.encoding_rsdropped.GraphicsArchive::text_image(wasmtextImage, FFI, Python): draws aglyph_text/glyph_namewith the archive's font.Step 1 of #438; Unicode tables per glyph set follow.
Refs #438
https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7