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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Font Sizes

Status
Not open for further replies.

MZwijacz

Programmer
Jun 27, 2002
33
US
I have been reviewing the archives and MSDN for how to retrieve the font sizes for a particular fontfamily. But I have had no luck.

I have looked through the fontfamily class and font class I see no method or property that would return a collection or array of font sizes.

What I am trying to do is allow the user to select a fontfamily from a list box and then display the sizes that family would support on the printer in another list box. Then the user would be printing a text file to the printer with the specified fontfamily and size.

I can't use the font dialog because these settings would be saved and used for hundreds of files on a print server. An administrator would set them once for all files to print.

What am I missing here ?

Thanks,
MFZ
 
Hi,

isn't letting the user choose the font familly and size via list boxes more or less the same than letting him choose them from a font dialog?

Don't most font famillies support the same font sizes?
Can't you use a pre-established list of font sizes?
 
Yes I am duplicating some functionality but am persisting the info in the UI and saviing defaults to a settings file. I am able to get all fontfamilies and styles are standard. I could hardcode the sizes but would like to read what is standard for the printer selected.

There will be many non standard printers and want to accomodate their individuality.

Thanks,
MFZ
 
It's hard to do that, here a little pdf that explains the problem regarding printing crystal reports :
If you really want to do what you're saying then you might have to start "talking" to the printers' drivers (don't ask me how [ponder]) in order to know the way they print fonts....

good luck
 
Ok thanks it seems I've hit the wall.

Thanks for trying,
MFZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top