Information about the font file
Help please - how do you know the name and version of the font file? For example, TTF...
Can it possible to use API FontResource function? How?
Archive: Information about the font file
Information about the font file
Help please - how do you know the name and version of the font file? For example, TTF...
Can it possible to use API FontResource function? How?
For the name, you can use the FontName plug-in. I'm not sure what you mean by the font version...
http://nsis.sourceforge.net/FontName_plug-in
Originally posted by kichikFor example, the font file arial.ttf - Version 3.00
I'm not sure what you mean by the font version...
First time I hear about font versions. I can't find anything about it in the Win32 API. If you can find an exported function that does the trick, you can call it using System::Call. I couldn't find anything with a quick Google search... Maybe you'll have to parse the file manually.
Originally posted by kichikWe must somehow get the version information from the table Naming Table ( Name IDs Code 5 Version string )
I couldn't find anything with a quick Google search...
I think the easiest is to write simple plug-in (.dll) which can load this.
Calling API functions from NSIS is not enough in this case.
I think you should be able to get this data with GetFontData using System::Call:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
Don't ask me the syntax, but someone familiar with the System::Call system should be able to tell you.
Unfortunately, I'm not a programmer. And I do not understand ... Therefore asked for help ...
No idea how to get the version the font file?
Function GetFontData is not suitable for this ...
I believe the normal version functions used on dlls works on font files (Maybe thats just for .fon?)