mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 20:15:56 +00:00
The menu merges the Japanese, Korean and Chinese language names from a system font. Dear ImGui asserts on a font stb_truetype cannot parse, and the assert ends the process with 0xc0000409 (exit code 127 in a shell) and no line in the log, a few seconds after the window opens: the report of an AMD laptop on Windows 11 Home Single Language (#176) matches that, and a test build of our ImGui with a damaged font exits the same way. A cut-off font passes the parse and faults later, when the glyphs are made, because stb_truetype reads tables without bounds checks. fonts_up now runs each system font through a private copy of stb_truetype whose asserts only mark the font bad, after checking that every table of its directory lies inside the file, and leaves out a font that fails with a log line. --probe-window checks that the test takes the embedded Roboto and refuses a cut-off copy, one without a character map and one with an unknown tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>