GetSelectedFontProgramBytes
Fonts
Descrição
Retorna o comprimento do stream codificado, em bytes, do font program embutido da fonte selecionada no momento
Looks at the selected font's /FontDescriptor and checks /FontFile, then /FontFile2, then /FontFile3 in that order, returning the /Length of the first one present. The length reflects the stream as stored in the PDF (compressed, if the stream uses a filter), not the decompressed program size
Sintaxe
Delphi
Function TPDFlib.GetSelectedFontProgramBytes: Int64;Return values
The embedded font program's encoded byte length. Returns 0 when no font is selected, the font has no /FontDescriptor, or none of /FontFile, /FontFile2 or /FontFile3 is present, which is the normal case for a non-embedded standard font
Remarks
Call SelectFont first to choose the font to inspect. For a document-wide embedding summary instead of one font at a time, use EnumDocumentFonts or GetDocumentFontDiagnostics
See also
SelectFont, EnumDocumentFonts, GetDocumentFontDiagnostics, SaveFontToFile