benilla-re systems structs docs

GlyphWidth

function · font · primitive

Address
0x5cb080 · 90 bytes, up to 0x5cb0d9
Signature
double __thiscall (void *this, void *desc, int mode, float size)
Meaning
Returns a glyph's width, rounded up or scaled by the render size
Confidence
verified, proof one
Finding
font/metrics#glyph-width-and-step-base
Test
font::glyph_width_scaled_difftest

Finding: Glyph width and step base in font: scaling, advances and metrics

A glyph's step base is its +0x4c metric, plus 1.0 for a thick outline. Its width metric is its +0x50 value, rounded up in pixel mode or scaled by the render size over the font's pixel size.

The derivation is in the doc.

Callers 2

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.