Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Available Font Sizes 2

Status
Not open for further replies.

MatDavies

Programmer
Feb 22, 2001
243
GB
Hi,

I have done a search but found nothing... I would like to get a list of standard font sizes available to a selected font, much in the way word does. you select a font, in the next combo there is a list of sizes. I have the list of fonts, that is no problem, it is the size bit that is causing a headache.

cheers

Matt

If you can keep your head while those around you are losing theirs, you obviously haven't grasped the seriousness of the situation
 
When I needed to do this, I created a combobox and populated it with 8 to 64 in steps of 2.
 
Thanks, I may just have to do it that way. I suppose most fonts allow most sizes anyway.

Cheers


Matt

If you can keep your head while those around you are losing theirs, you obviously haven't grasped the seriousness of the situation
 
>I may just have to do it that way

It's the way Word does it (more-or-less)...

 
if you are talking about ttf fonts then there is no such thing as standard sizes as they are vector based and will display in any size you choose.


Jamie Gillespie
j-gillespie@s-cheshire.ac.uk
 
Sounds good then. and I thought there was some trickery that MS wasn't letting on about!

[bigsmile]



If you can keep your head while those around you are losing theirs, you obviously haven't grasped the seriousness of the situation
 
You can choose your own sizes for TT fonts - that's the way they work. They are actually calculated on-the-fly. If you type in 13.5 in the font size window in an Office app, that's exactly what you get.

Mind you it gets a bit hard to read when you get down to 1-point, and you only get 1 letter per page when you get up to 500-point! However note that VB sets limits on the smaller sizes depending on font name, and seems to increment only in arbritary steps.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
It was more for the non-true type fonts I was looking, as I know they can look a bit messy when scaled, but then, I suppose most fonts are ttf now anyway so it shouldn't cause a big problem.

Thanks for the comments everyone.

Matt

If you can keep your head while those around you are losing theirs, you obviously haven't grasped the seriousness of the situation
 
It's not so much "arbitrary" as it is "traditional". Traditional type sizes (from when you were talking about physical type) tend to be 7, 9, 10, 12, 14, 18, and 24, with 36, 48, 60, and 72 being fairly common as well.

MS apps tend to substitute 8 for 7.
 
>Traditional type sizes

Windows frankly hasn't given a damn about 'traditional' type sizes since Windows 3.1/WfWG 3.11

What it has given a damn about with various vector formats (for about 10 years or more, certainly since the general adoption of Truetype, which first really appeared in <fx: google> 1991) is whether the screen representation looks OK - and what happens here is that when Windows is asked for a particular point size for a device context, what it actually does is return the closest point size that can be rendered with minimal artifacts (eg disproportinately narrow uprights) in that device context, through a relatively low-level process known as font mapping.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top