?
Solved

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

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

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

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.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

765 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