| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jan 11, 2004 2:13 am Post subject: Getting Font Information? |
|
|
Anyone know how to get information from a font? Such as author,
copyright info etc....???
Thanks,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jan 11, 2004 2:44 am Post subject: |
|
|
Maybe an API? Or perhaps using BINFILE and using a technique similar to
how the IDv3 tags are read/written with VDS in mp3's
I checked out @verinfo() but it didn't look like it would work. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jan 11, 2004 4:18 am Post subject: |
|
|
I checked into using the binfile since that's how I figured out how to find
icons in an exe file, but I could not find any pattern like I did with the
icons.
I'm not too good with the complicated API's. I've done figured out all the
simple API's that I could.
Thanks for the info though.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Jan 11, 2004 8:37 am Post subject: |
|
|
I opened a font with Notepad, and this was what one of the last lines of the file said:
| Quote: | | —Another friendly font from Allen R. Walden. UNPROTECTED. - Please distribute freely.AfricanRegularAfrican 032893AfricanAfricanSoftware Friends, Inc. © 1993 A n o t h e r f r i e n d l y f o n t f r o m A l l e n R . W a l d e n . U N P R O T E C T E D . - P l e a s e d i s t r i b u t e f r e e l y . A f r i c a n R e g u l a r A f r i c a n 0 3 2 8 9 3 A f r i c a n A f r i c a n S o f t w a r e F r i e n d s , I n c . © 1 9 9 3 ˙° |
I guess that if you search for the © character, you can find the rest as well... |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jan 11, 2004 7:23 pm Post subject: |
|
|
Thanks Skit for checking into this. Unfortunately, not all of the fonts
have that, nor is the info at the bottom of all the fonts. I found that
some have the info near the begining of the file, some in the middle
and some near the end. Some had the copyright symbol, some
didn't.
I don't think there's going to be a native VDS way to do this. Probably
an API out there somewhere for this one.
Thanks,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 2:52 pm Post subject: |
|
|
Hi Garrett,
I don't know how to do this. I have looked at all the Font API's in both the win32 help file and at MSDN and niether mention anything about this. Those tags must me specific to the application that created the font file I will let you know if I find anything. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Jan 12, 2004 2:53 pm Post subject: |
|
|
| Does the "Windows Font View" show who made the font, etc.? In that case, you could load the font with that, and just grab the info from that window... |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 5:30 pm Post subject: |
|
|
Hi All,
Ok after a little more research it seems that Fonts in files with the *.fon which are standard fonts have a Version Info resource. Take a look at the script below...
| Code: | %%FontCompany = @Verinfo(@WINDIR()\Fonts\coure.fon,C)
%%FontVersion = @Verinfo(@WINDIR()\Fonts\coure.fon,V)
%%FontCopyright = @Verinfo(@WINDIR()\Fonts\coure.fon,Y)
%%FontFileName = @Verinfo(@WINDIR()\Fonts\coure.fon,N)
%%FontFileDisc = @Verinfo(@WINDIR()\Fonts\coure.fon,D)
Info Font: @WINDIR()\Fonts\%%FontFileName@cr()Discription: %%FontFileDisc@CR()Company: %%FontCompany@CR()Version: %%FontVersion@CR()CopyRight: %%FontCopyright
|
As for TrueType fonts I am still looking into this. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Jan 12, 2004 6:09 pm Post subject: |
|
|
I was just thinking about that...  |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 12, 2004 6:38 pm Post subject: |
|
|
Well that's great, thanks DragonSphere. I had only tried that on
.ttf files, and they weren't in the font directory at the time. So I just
assumed that even the .fon files would not have the info either.
This at least gets me half way through what I was trying to do.
Thanks again,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 7:25 pm Post subject: |
|
|
Garrett,
Here again even with the fact that *.fon's can have a Version resource does not mean that custom fonts will have this resource as part of the file. Just like the Version resource in DLL's and Exe's...  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 7:53 pm Post subject: |
|
|
Garrett,
I found the solution to the TTF's version info. I am working on a way to implement it in VDS  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 12, 2004 8:53 pm Post subject: |
|
|
I understand that not all fonts will have the info. Basically, what I'm
trying to do is make a character map/browser that allows a programmer
to determine if he can use a specific font in a commercial or even
freeware program. When they click the font in the list and it bring up
the map of characters, I am trying to also get the copyright and other
info so the programmer can determine if he can use the font or if
he/she needs to contact the author for a license to use the font.
The map/browse part is done and working... Just trying to get the info
now if possible.
Any help is of course greatly appreciated. If not, then it's not a big loss
for my program.
Thanks,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 9:36 pm Post subject: |
|
|
Garrett,
That would be a cool utility Anyway you might be interested to know that some fonts also have WebSite addresses in their version information as well as Copyright information and Company name... _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
|
| Back to top |
|
 |
|