property FontData[FontIndex: Integer]: TBytes; // read only
임베드된 폰트 프로그램의 원본 바이트를 반환합니다(폰트가 임베드된 경우에만 채워짐). 이 프로퍼티는 문자에서 얻은 폰트 핸들(FontHandle[CharIndex])이나 페이지 폰트 리소스를 직접 나열한 것으로 인덱싱합니다
읽기 전용입니다. 하부 값은 PDFium이 폰트 딕셔너리나 폰트 프로그램에서 느긋하게 조회합니다. 인덱스가 알려진 폰트와 맞지 않으면 EPdfError를 발생시킵니다
폰트 대체나 텍스트 스타일 재구성 파이프라인을 만들 때는 이 프로퍼티를 CharacterFontSize / CharacterFontWeight와 함께 사용하세요
| FontIndex | 폰트 핸들의 인덱스입니다. FontHandle[CharIndex]로 얻거나 페이지 폰트 리소스를 나열해서 구하세요 |
FontData로 폰트 프로그램을 직접 꺼내 TrueType/OpenType 파서로 조회하세요
var
FontIdx: Integer;
begin
// inspect the font used by the first character
if Pdf1.CharacterCount > 0 then
begin
FontIdx := Pdf1.FontHandle[0];
Memo1.Lines.Add(Format('%s (embed=%s)',
[Pdf1.FontFamilyName[FontIdx], BoolToStr(Pdf1.FontIsEmbedded[FontIdx], True)]));
end;
end;