TFlexCelPdfExport.GetFontFolder Event
Use this event if you want to provide your own font information for embedding. Normally FlexCel will search for fonts on [System]\Fonts folder and %%localappdata%%\Microsoft\Windows\Fonts. If your fonts are in other location, you can tell FlexCel where they are here. If you prefer just to give FlexCel the full data on the font, you can use GetFontData event instead.
Note that this property applies only to this object. To change the property for the full application, use TPdfWriter.GetFontFolderGlobal
Syntax
Unit: FlexCel.Render
property TFlexCelPdfExport.GetFontFolder: TGetFontFolderEventHandler
Examples
The following code will setup a GetFontFolder event that searches for a font first in c:\MyFonts, and if the font isn't there, it will search in the default FlexCel search path:
procedure LocatePDFFontFolder(const sender: TObject; const e: TGetFontFolderEventArgs);
begin
e.FontPath := 'c:\MyFonts;' + e.FontPath;;
end;
...
pdf := TFlexCelPdfExport.Create(xls, true);
try
pdf.GetFontFolder:= LocatePDFFontFolder;
pdf.Export('result.pdf');
finally
pdf.Free;
end;