Amr Elsehemy

Hello ,

I need some help in my windows forms application it seems that I can't use Fonts of type .fon in my windows form.

I read this post, but asking if there any workaround that allows me to use the monospace fonts in my windows application.

Thanks in Advance.




Re: Windows Forms General MonoSpace fonts?

nobugz

You can only use .ttf (TrueType) fonts in a Windows Forms app. Fixed-width TT fonts are Courier New and Lucida Console. Consolas is a new font that looks very nice but only works on LCD screens with ClearType enabled.





Re: Windows Forms General MonoSpace fonts?

Amr Elsehemy

I need a work around , a pinvoke method, anything

why can a notepad display it and not me

Thanks for help






Re: Windows Forms General MonoSpace fonts?

nobugz

There is no workaround, GDI+ only deals with TrueType fonts. RichTextBox is known to work with device fonts. Why is this a problem





Re: Windows Forms General MonoSpace fonts?

Amr Elsehemy

Yes after searching and reading some books I found out GDI+ only support true type fonts but I have this project the customer gave me a font that he needs to display his data I was asking if I could use a GDI method pinvoke it of something I needed guidance and help thank you anyway for trying to help.