THPDFTrueTypeData.Create

Unit: HPDFFontData

constructor Create(const Sfnt: TBytes);

Retain a single-font sfnt byte array and read the glyph count from maxp

Free the object once finished; invalid or absent maxp data leaves NumGlyphs equal to zero

The object shares Pascal dynamic-array ownership with the caller; keep the byte contents until the object is freed

THPDFTrueTypeData · Linux portable core and platform contracts