property FontItalicAngle[Index: Integer]: Integer; // read only
返回 Index 处文本页面对象所用字体的斜体角(以度为单位,典型斜体为负;直立体为 0)。对当前页面上的文本对象,有效范围是 0 .. ObjectCount - 1
只读。底层值由 PDFium 从字体字典或字体程序惰性查询。当索引不匹配已知字体时,该函数抛出 EPdfError
将此属性与 CharacterFontSize / CharacterFontWeight 一起使用,以驱动字体替换或文本样式重建管道
| Index | 从 0 开始的页面对象下标,范围为 0 .. ObjectCount - 1,指向一个文本对象(ObjectType[Index] = otText) |
/ItalicAngle 条目FontData 和 TrueType/OpenType 解析器直接查询字体程序
var
I: Integer;
begin
for I := 0 to Pdf1.ObjectCount - 1 do
if Pdf1.ObjectType[I] = otText then
Memo1.Lines.Add(Format('%s (italic=%d)', [Pdf1.FontFamilyName[I], Pdf1.FontItalicAngle[I]]));
end;