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

C

Chad Sanford

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.GenericSansSerif, 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top