On 02.11.23 16:42, Mattias Gaertner via fpc-pascal wrote:
On 02.11.23 14:00, Michael Van Canneyt via fpc-pascal wrote:
On Thu, 2 Nov 2023, 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
On Thu, 2 Nov 2023, Mattias Gaertner via fpc-pascal wrote:
On 02.11.23 14:00, Michael Van Canneyt via fpc-pascal wrote:
On Thu, 2 Nov 2023, 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
On 02.11.23 16:58, Michael Van Canneyt via fpc-pascal wrote:
[...]
Yes, absolutely.
But we may need a ref. counting mechanism then. Or at least we need to
decide who 'owns' the streams; At first sight it seems to me the
gTTFontCache should own all font streams.
Yes.
On second thought,
On 02.11.23 14:00, Michael Van Canneyt via fpc-pascal wrote:
On Thu, 2 Nov 2023, 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)
...
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.
On Thu, 2 Nov 2023, 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
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
On Thu, 2 Nov 2023, Mattias Gaertner via fpc-pascal wrote:
Hi,
How to load a custom font from a stream instead of from a file?
Currently no way to my knowledge, but I am open for patches !
Michael.
___
fpc-pascal maillist -
Hi,
How to load a custom font from a stream instead of from a file?
Mattias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal