Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding fonts into a VB.NET program.

Status
Not open for further replies.

PixelGod

Programmer
Aug 24, 2015
16
US
Hello,

This is my first post, so, sorry for any errors on my part!

I have a custom font which I have included in my program. I want to incorporate this into the software without needing to install it on any users' systems. I utilized FAQ article FAQ796-4747, but I seem to have issues executing this.

I have included the FAQ's code into a separate class and am instancing it in my main code. For the life of me, I cannot seem to get the "GetFonts" function to work at all, or determine what string I am supposed to send to it to begin using the font.

The font was properly changed in my resx file to an "Embedded Resource". Other than following the article specifically as instructed, I am kind of at a loss with what to do with the code now. Any help that anyone could provide would be greatly appreciated. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top