Jump to content

Embeded Font

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
I'm using a custom font to display text on a little application I am making. I added it to the project as a reference and it works fine from my computer (even though the font is not installed on the computer). I've set the font to be an embedded resource.

The problem I am having is that the font will not print on any other computer. I've copied the font to the directory of the program on the other computers and everything but it still does not print out correctly.

I call the font like:


private static Font m_myFont = new Font("Large Font 1", 30); 


What am I doing wrong?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I've never taken the time to figure out the embedded font (always loaded from a file) but you want to look at the System.Drawing.Text.PrivateFontCollection namespace.