[fpc-pascal] fcl-pdf custom font from memstream

Alexey Torgashin support at uvviewsoft.com
Thu Nov 2 13:38:44 CET 2023


>> How to load a custom font from a stream instead of from a file?
> 
> Currently no way to my knowledge,

But fpparsettf.pp has this:

   TTFFileInfo = class(TObject)
   ...
   public
     // Load a TTF file from file or stream.
     Procedure LoadFromFile(const AFileName : String);
     Procedure LoadFromStream(AStream: TStream); virtual;


More information about the fpc-pascal mailing list