Help: How do I load a raster font?

J

John Tempest

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
 
S

Simon Trew

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top