BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Determine available font script

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Dave Peters
Guest





PostPosted: Wed Apr 18, 2007 2:17 pm    Post subject: Determine available font script Reply with quote



Can anyone tell me how I can find the available scripts of a font given its
name ?

When you use a font selecton dialog, you get the ability to select which
script to use from the font but how do you write a routine that emulates
that selection box by showing only the available scripts ?

I am using Delphi 6 but I assume the method would be the same in any
version.

Regards

Dave Peters
DP Software
Back to top
David Ninnes
Guest





PostPosted: Wed Apr 18, 2007 7:15 pm    Post subject: Re: Determine available font script Reply with quote



Quote:
When you use a font selecton dialog, you get the ability to select which
script to use from the font but how do you write a routine that emulates
that selection box by showing only the available scripts ?

I'm not 100% what you're after, but the windows function EnumFontFamiliesEx
allows you to run through the available fonts, this is what the font drop
down boxes use.

If you have a look around on torrey's I'm sure there'll be a public domain
one available to get you started.

hth,
Dave
Back to top
Dave Peters
Guest





PostPosted: Sat Apr 21, 2007 4:36 pm    Post subject: Re: Determine available font script Reply with quote



Thanks for your help. There was some free source on Torrey as you suggested.

Regards

Dave

Quote:
I'm not 100% what you're after, but the windows function
EnumFontFamiliesEx
allows you to run through the available fonts, this is what the font drop
down boxes use.

If you have a look around on torrey's I'm sure there'll be a public domain
one available to get you started.

hth,
Dave

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.