CGxFont::ComputeStepFixedWidth
function · font · primitive
- Address
0x5ca4b0· 563 bytes, up to0x5ca6e2- Meaning
- Returns the fixed-width step that centres a glyph in its cell
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- font/metrics#step-between-two-glyphs
- Test
font::compute_step_fixedwidth_difftest
Finding: Step between two glyphs in font: scaling, advances and metrics
0x5ca2d0(prev, cur) is the proportional step from one glyph to the next: the previous glyph's
step base plus its kerning with the next, rounded up. 0x5ca4b0 is the fixed-width step, which
centres each glyph in a cell of [font + 0x178] pixels.
The derivation is in the doc.
Callers 6
- MeasureTextExtent font
- CGxFont::GetCharAdvance font
- InternalGetMaxCharsWithinWidth font
- MeasureRunFixed font
- MeasureRunProportional font
- CGxString::BuildGlyphQuad font
Callees 6
Calls and jumps by a bare address, from tables/calls.tsv.