0x2db set-text-aspect-mode
Opcode 0x2db (731), adv. Investigated by OME, with high confidence (from investigation).
(mode) - select the SYS4433 glyph aspect/metric mode and rebuild the primary font resources.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | — | imm | read |
In the port
OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:
falls: it returns to the next instruction
OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.
By build
Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | no | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | 2 |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4433, high confidence; Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x2db): op_0x2db_set_text_aspect_mode@0x4235f0 stores the operand at text-manager+0x313d0 and rebuilds font resources. Modes 0/1/2 alter glyph metric and ordinary/vertical-font selection; SYSTEM4.BIN@0xbd supplies mode 1. Live ADV worker adv_text_append_horizontal_glyph_records@0x45b710 uses MS Gothic reference CP932 0x8c83 gmCellIncX/Y at text-manager+0x313e8/+0x313ea for nonzero-mode overflow and horizontal advance: single-byte codes use half X, double-byte codes full X. Record bottom uses requested font size plus effect Y for nonzero render mode, independently of the overflow metric. SYS4422 has no installed handler in this slot. - native-re on SYS4433, high confidence; Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x2db): Mode 1 also calibrates a proportional face's lfWidth from the glyph 激 against the reference MS Gothic (text_measure_glyph_with_aspect_mode@0x452020, text_calibrate_mode1_glyph_font@0x451270; Kamidori's Meiryo bold comes out at -18 for 20 and 22 px), places each glyph inside its reference-width cell by its bracket class (text_classify_aspect_glyph@0x45c560, the glyph draws at 0x460918/0x45e815) and raises it by the realized font's ascent difference (0x45be16). Port: AspectFontRealization, AspectGlyphPlacement, RetainedGlyphLayoutEngine.AspectGlyphRaise; Kamidori's furigana page and History match native in their text (2026-11-07). Immediate surface text (0x204/0x205, text_draw_string_to_surface_sys4433@0x44f7d0) takes the calibrated fonts too, with each single-byte glyph in a font calibrated against itself, and advances by its glyph-string draw's rule: the plain draw by the glyph's own cell, the effect draw by half the reference cell for one byte; Kamidori's CONFIG2 values and font names match native (2026-11-07). docs/engine-re.md, 'Aspect-mode font calibration', 'Aspect-mode glyph placement' and 'Aspect-mode surface text'.