forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting Font Information?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jan 11, 2004 2:13 am    Post subject: Getting Font Information? Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jan 11, 2004 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jan 11, 2004 4:18 am    Post subject: Reply with quote

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. Sad

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Jan 11, 2004 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jan 11, 2004 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 2:52 pm    Post subject: Reply with quote

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 Question I will let you know if I find anything.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Jan 12, 2004 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 5:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Jan 12, 2004 6:09 pm    Post subject: Reply with quote

I was just thinking about that... Smile
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 12, 2004 6:38 pm    Post subject: Reply with quote

Well that's great, thanks DragonSphere. Smile 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. Smile

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 7:25 pm    Post subject: Reply with quote

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... Sad

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 7:53 pm    Post subject: Reply with quote

Garrett,
I found the solution to the TTF's version info. I am working on a way to implement it in VDS Very Happy

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 12, 2004 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 9:36 pm    Post subject: Reply with quote

Garrett,
That would be a cool utility Cool 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Jan 13, 2004 7:21 am    Post subject: Reply with quote

Something like this is very handy. Currently I use "Arjan Mel's Font Viewer". It's amazing which info you
can obtain using that one...

Can be found here:
http://www.freelang.net/fonts/fonts_lnk.html

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group