ASP Charts - Looking for a list of acceptable font family names.

Take a look at the attached image.  I used the following code in an effort to achieve Trebuchet MS.  
GraphicalChart.Titles("Title1").Font = New System.Drawing.Font("Trebuchet MS", 30, System.Drawing.FontStyle.Bold)

Open in new window

The font sure likes like Arial and not Trebuchet MS.  Where can I find a list of acceptable font family names for the Font constructor argument?
TrebuchetMS.png
jdanaAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
I use "Trebuchet MS" as the font name (in C# code) - it works on my PC

        private void button1_Click(object sender, EventArgs e)
        {
            this.label1.Font = new Font("Trebuchet MS", 10);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.label1.Font = new Font("Arial", 10);
        }

Open in new window

0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Is that font installed on the PC you display the chart on?  If it isn't then the system will resort to using a default font.
0
 
jdanaAuthor Commented:
You got it.  That's exactly what it's doing.  How do I make it show Trebuchet MS?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
AndyAinscowFreelance programmer / ConsultantCommented:
Install Trebuchet MS on the PC it is to run on.  Only installed fonts can be used.
0
 
jdanaAuthor Commented:
See the screen shot below.  This comes from MS Word on the PC it is to run on.  Trebuchet MS is installed on this machine.  Once again, the question is: Where can I find a list of acceptable font family names for the Font constructor argument?
TrebuchetMS.png
0
 
jdanaAuthor Commented:
Thanks for sticking with me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.