Using Existing Fonts

  • Thread starter Thread starter Steve S
  • Start date Start date
S

Steve S

Hi, I want to check the system for the arial font, then use it bold. I know
I could just do something like "new Font("Arial",10,FontStyle.Bold)", but I
want to check the system.

Thanks
 
FontFamily family("Arial");
bool available = FontFamily.IsAvailable(FontStyle.Bold);
 
You shouldn't have to check with Arial, unless you're supporting more than
one operating system. Every windows machine has Arial installed on it unless
it's been deleted somehow.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top