RasterSetHighPrecision
function · unassigned · primitive
- Address
0x7dabe0· 86 bytes, up to0x7dac35- Signature
void __fastcall (void *raster, int32_t high)- Meaning
- Sets the raster's precision: 10 bits and jitter 24 when high, else 6 bits and jitter 2
- Confidence
- verified, proof one
- Finding
- font/freetype#mono-scan-conversion
- Test
font::set_high_precision_difftest
Finding: Mono scan conversion in font: the FreeType calls
raster1 sets its precision from the outline's high-precision flag: with it, 10 bits per pixel and
a jitter of 24 units, 24/1024 px; without it, 6 bits and a jitter of 2, 2/64 px. It sweeps the
rows with drop-out control 2 and then, unless the outline flag 0x200 is set, the columns. A row
span from x1 to x2 fills the pixels from ceil(x1) to floor(x2), but only pixel ceil(x1)
when x2 − x1 − 1 px is at most the jitter; a span past either end of the row fills nothing, and
one partly outside is clamped to the row.
The derivation is in the doc.
Callers 1
- RasterRenderGlyph unassigned
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.