Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > get_GenericSansSerif - "Can't find font '?'"

Reply
Thread Tools

get_GenericSansSerif - "Can't find font '?'"

 
 
Chad Sanford
Guest
Posts: n/a
 
      11-10-2003
I have some server side code that instantiates a font object that is then
used for generating a chart.

It has worked great on many machines, but I have run into one where it is
throwing a System.ArgumentException. From the documentation, that would
seem to indicate the font is not present, but since I am using generic sans
serif I have my doubts about that.

The offending line of code is:

Dim oFont As New
System.Drawing.Font(System.Drawing.FontFamily.Gene ricSansSerif, 6.0)

The exception's target is the get_GenericSansSerif method.

The only information I have been able to turn up on this problem is an old
thread on this newsgroup that concluded that "it was a security issue", but
no other explanation was provided.

Anyone know what is going on, and how I might fix it?

Thanks for any help,

Chad


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
How to get the text in html tag.like<div...><font...>Text</font></ =?Utf-8?B?Tmlja3k=?= ASP .Net 2 02-20-2005 03:03 PM
Font class, external font files question Karl Hungus ASP .Net 1 02-04-2004 04:26 PM
JavaRE 1.4.2 font alias in /lib/font.properties (Linux) Nick Spinel Java 0 07-25-2003 08:28 AM
physical font specified but true type font file not available Michael Glavitsch Java 1 07-15-2003 07:09 PM



Advertisments