![]() |
Delphi-Version: 5
Get font name stored in stream
Getting TTF name from file is not hard, but how about the ones stored in stream? How to do it :?:
|
AW: Get font name stored in stream
Zitat:
How do you read the name from the file? Mostly the file is opend as a stream and then the information is read from the stream ;) |
AW: Get font name stored in stream
Can you be more detailed what you mean or try to achieve? :)
Because getting some "file information" stored in a stream is basically the same like getting information from an external file. The only difference is that you need to "locate" and "extract" the file from the stream. So did you create the stream yourself? Or is it some unknown data format? Because if you created the stream yourself you should know the properties (like position and size) of the files / data you store? Or do you mean how to "read" from a
Delphi-Quellcode:
or
TMemoryStream
Delphi-Quellcode:
? If yes, then look up
TFileStream
Delphi-Quellcode:
.
TStream.Read
|
AW: Get font name stored in stream
Also have a look at
![]() And on SO there is also an example ![]() |
Re: AW: Get font name stored in stream
Zitat:
Zitat:
Delphi-Quellcode:
function GetFontResourceInfoW(lpszFilename: PWideChar; var cbBuffer: DWORD; lpBuffer: PWideChar; dwQueryType: DWORD): DWORD; stdcall;
This is working for both TTF and FON. But they want to see file path, not data pointer. Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:38 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz