Solved

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

Posted on 2011-03-24
6
327 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now