By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,331 Members | 1,278 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,331 IT Pros & Developers. It's quick & easy.

Help: How do I load a raster font?

P: n/a
Please help. I got no response to my previous query "?Using raster fonts as
graphics in dotNet?" posted on 7th July.

The principal question remains: How can I (if I can at all) select a raster
font (say with extension .fon) to associate with a form and use it to draw
text on the form? The problem seems to be that names of raster fonts aren't
recognised in the Font constructor which requires fonts to be members of a
font family (ie in TrueType or OpenType format). Is there an alternative
constructor, or another way of getting round the problem?

More detailed responses to the original email which poses some alternatives
would also be very welcome. Someone must have some expert knowledge in this
field.

John Tempest
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
GDI+ only supports true-type fonts, so you can't use raster fonts at all in
..NET (without using p/invoke).

I have code that will allow you to use p/invoke to draw text in non-raster
fonts, but this will not work for your controls on the forms.

You could try converting the raster font into a true-type font, I don't
know if there are any tools out there to do this.

S.
"John Tempest" <Jo**********@blueyonder.co.uk> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl...
Please help. I got no response to my previous query "?Using raster fonts as graphics in dotNet?" posted on 7th July.

The principal question remains: How can I (if I can at all) select a raster font (say with extension .fon) to associate with a form and use it to draw
text on the form? The problem seems to be that names of raster fonts aren't recognised in the Font constructor which requires fonts to be members of a
font family (ie in TrueType or OpenType format). Is there an alternative
constructor, or another way of getting round the problem?

More detailed responses to the original email which poses some alternatives would also be very welcome. Someone must have some expert knowledge in this field.

John Tempest

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.