Solved

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

Posted on 2011-03-24
6
332 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:jdana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 35209892
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
 

Author Comment

by:jdana
ID: 35215624
You got it.  That's exactly what it's doing.  How do I make it show Trebuchet MS?
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 35216715
Install Trebuchet MS on the PC it is to run on.  Only installed fonts can be used.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jdana
ID: 35218752
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
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
ID: 35221037
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
 

Author Closing Comment

by:jdana
ID: 35226424
Thanks for sticking with me.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question