 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dave Peters Guest
|
Posted: Wed Apr 18, 2007 2:17 pm Post subject: Determine available font script |
|
|
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
|
Posted: Wed Apr 18, 2007 7:15 pm Post subject: Re: Determine available font script |
|
|
| 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
|
Posted: Sat Apr 21, 2007 4:36 pm Post subject: Re: Determine available font script |
|
|
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 |
|
 |
|
|
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
|
|