Visual Studio declaring font as a string

TheSpeck

Junior Member
Oct 9, 2004
23
0
0

I can do

DIM displayFont As New Font ("Times New Roman", 24, FontstyleBold, GraphicsUnit.Pixel)

and I get the desired result

If i do

DIM displayFont As New Font ("Michelangelo Normal", 24, FontstyleBold, GraphicsUnit.Pixel)

The text my function generates does not use the font. I recently added the Michelangelo font to windows. my question is, do I need to set that font up in VS first before I can use it in a variable? Or what can I do to get this to work.

thanks
 

TheSpeck

Junior Member
Oct 9, 2004
23
0
0
I cut and pasted the string from ms word pad. it is how windows sees the font .

I also tried rebooting and restarting visual studio. it is an open type font. I'm using visual basic .NET.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
See if .net can see it by using code similar to below:

Imports System.Drawing

For Each family As FontFamily In FontFamily.Families

' add to listbox or similar
listBox1.Items.Add(family.Name)

Next