THotPDF.GetLegacyKernPairAdjustment 方法

声明

function GetLegacyKernPairAdjustment(FirstGID, SecondGID: Word): Integer;

行为

遍历当前 Unicode 字体在 Apple TrueType / GDI 时代的经典 kern 表,返回两个字形 GID 的字距对调整值。该表是一串 subtable 链;经典水平 format 0 按 32 位 (left shl 16) or right 键排序,存放 nPairs 个 {left, right, value} 条目,正好适合 binary search。只要没有任何 format 0 水平 subtable 含有这个字距对,方法就返回 0

另请参阅 THotPDF、International Script Shaping Support