0x2dd get-font-family-name
Opcode 0x2dd (733), adv. Investigated by OME, with high confidence (from investigation).
(out_face_name)(index) - copy the indexed entry from SYS4433's installed-font-family cache, or write an empty string when the index is negative or out of range.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | out: installed font-family face name, or empty when invalid | g-str, l-str | write-string |
| 2 | zero-based installed font-family index | l-int | 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 | 1 |
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 0x2dd): SYS4433 dispatcher slot 0x2dd installs op_0x2dd_get_font_family_name@0x42d7f0. It initializes a temporary string empty, fetches operand 2, copies vector[index] from EngineCtx+0x45cf8 only when0 <= index < (end-begin)/0x20, then vm_operand_write_string@0x42c570 stores the result to operand 1. SELFONT.BIN calls it at 0x958 with global-string/local-int and at 0xb86 with local-string/local-int. SYS4422 does not install this slot.
Details
OME’s notes on it, as the registry keeps them.
The handler reads the same 0x20-byte string vector counted by opcode 0x2dc and searched by 0x2de. The startup reader builds that list once (text_build_font_family_list@0x458040): GDI's Shift-JIS families, minus FontLink SystemLink faces other than ten Japanese ones, minus the proportional ones unless set:UseProportionalFont, minus any family lacking a VALIDFONTCHECKER character (docs/engine-re.md, 'Font family list'). The port builds the same list (FontFamilyCatalog over WindowsGdiFontFamilySource); on this machine it equals native's 37 families in order (2026-11-07). Both Kamidori calls are in SELFONT.BIN: one writes a global string from local index 1040 and one writes a local string from that same index. SYS4422 does not install this dispatch slot.