CharMaskRep:
TYPE ~
MACHINE
DEPENDENT
RECORD [
font: REF, -- font and char together provide a unique identifier for this mask
char: IIFont.XChar,
sWidth, fWidth: Scaled.Value,
sMinBB, fMinBB: INTEGER,
sSizeBB, fSizeBB: CARDINAL,
metricsValid: BOOL, -- numbers above are invalid if this is true.
amplified: BOOL,
correction: IIFont.CorrectionType,
flag: PACKED ARRAY [0..10) OF [0..1], -- for padding and expansion
data:
SELECT rep: *
FROM
raster => [bits: SEQUENCE COMPUTED CARDINAL -- sSize*Ceiling[fSize/16.0] -- OF WORD],
runs => [run: SEQUENCE nRuns: CARDINAL OF Run],
uncached => [],
ENDCASE
];