THotPDF.GetLoadedEmbeddedFontCount Method
Returns the number of embedded font resources in the loaded PDF document
Declaration
function GetLoadedEmbeddedFontCount: Integer;
Unit
HPDFDoc
Return value
Returns the number of font descriptors containing embedded font programmes (FontFile, FontFile2, or FontFile3) in the document; returns 0 if there are no embedded fonts
Usage notes
- 统计范围仅限于含有实际字体程序的字体描述符,非嵌入的引用字体不计入
- This value can be used to judge whether the document can be rendered normally in an environment lacking system fonts; a higher embedded font count implies better portability
- Ensure the document has been successfully loaded before calling, otherwise returns 0