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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal