Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In our application, we use a specialized font (for GD&T[^])

We'd like to be able to remove/disable the part of the CFontDialog that we do not want (font list, font style, ... ) and just keep the font size list.

I know that removing UI element will not make the dialog nice, so that would teh last resort.

Another question, is there a way to query the available font size for a specific font ? or is that list "hard-coded" ? I could just use a custom UI with a list of sizes instead of calling the font dialog.


Thanks.
Posted

1 solution

You can query information on the installed fonts, just as the the dialog does it.

You will essentially enumerate through various branches in the font tables to find the information you seek.

See the following article for information on how to get started in this.
EnumFonts function
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900