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

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 2 14:46:36 CET 2023



On 02.11.23 13:38, Alexey Torgashin via fpc-pascal wrote:
> 
>>> 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;

Yes, but that is only one piece of the puzzle.

I will add the rest.

Mattias



More information about the fpc-pascal mailing list