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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postscript fonts and system.drawing GDI

Status
Not open for further replies.

magmo

Programmer
May 26, 2004
291
SE
Hi


I would like to use postscript (*.pfb, *.afm, *.pfm) fonts instead of the true type fonts that are installed in my system. I have some true type fonts activated in type manager, but if I use their name in this code...

graphics.DrawString("Test", New Font("mypostscriptfontname", 30, FontStyle.Bold, GraphicsUnit.Pixel), Brushes.Black, 75, 5)

it doesn't work, instead it use Arial. Is it possible to use other fonts than ttf?

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top