• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Visual Studio declaring font as a string

TheSpeck

Junior Member

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
 
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.
 
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
 
Back
Top