THotPDF.GetGPOSSingleAdjustment Method

Reads gpos single adjustment information from the current text shaping and font layout state. Use the value to inspect parser results, shaping tables, resource availability, or diagnostic counters without mutating document output

Declaration

function GetGPOSSingleAdjustment(GID: Word; const FeatureTag: AnsiString; out XPlacement, YPlacement: Integer; out XAdvance, YAdvance: Integer): boolean;

Unit

HPDFDoc

Parameters

NameDescription
GIDThe glyph ID to query (register the font via RegisterUnicodeTTF first)
FeatureTag4-byte OpenType feature tag, e.g. 'size', 'vhal'
XPlacement[out] X-axis placement adjustment (signed, 1000 em scale)
YPlacement[out] Y-axis placement adjustment (signed, 1000 em scale)
XAdvance[out] X-axis advance adjustment (signed, 1000 em scale)
YAdvance[out] Y-axis advance adjustment (signed, 1000 em scale)

Return value

Returns a boolean value

Usage notes

Related APIs