benilla-re systems structs docs

s_justifyNames

global · ui

Address
0x811ad0 · 48 bytes, up to 0x811aff
Type
const uint32_t[12]
Meaning
Holds six pairs of a justify bit and its name, LEFT 1 to BOTTOM 0x20
Confidence
verified, proof one
Finding
ui/fontstring#justify

Finding: Justify in ui: FontString and Font

The word +0x120 keeps the horizontal justify in bits 0 to 2 (LEFT 1, CENTER 2, RIGHT 4) and the vertical in bits 3 to 5 (TOP 8, MIDDLE 0x10, BOTTOM 0x20). SetJustifyH and SetJustifyV accept any of the six names, ignoring case, keep only their own axis's bits, so a name of the other axis clears the axis, and stop the axis from following the font. A getter answers the first name whose bit is set, in the order above, else UNKNOWN. A name not in the six raises a usage error.

The derivation is in the doc.