[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2011-03-24
6
Medium Priority
?
337 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 45

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 45

Expert Comment

by:AndyAinscow
ID: 35216715
Install Trebuchet MS on the PC it is to run on.  Only installed fonts can be used.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 45

Accepted Solution

by:
AndyAinscow earned 1000 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

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!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

649 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