Creating Fonts in VB.NET

  • Thread starter Thread starter Zyrthofar
  • Start date Start date
Z

Zyrthofar

Hello

I have a large file, and in it is encoded some bitmap characters. I
want to decode them and create a temporary charset (or font, or
whatever...) that I could use with a textbox or listbox...

I don't *need* to write the file to the disk. I just want to be able
to use the new font as long as the program runs.

How can I create it? Preferably, it would be nice to set the
characters one at a time...

thank you for your time
 
Zyrthofar said:
I have a large file, and in it is encoded some bitmap characters. I
want to decode them and create a temporary charset (or font, or
whatever...) that I could use with a textbox or listbox...

I don't *need* to write the file to the disk. I just want to be able
to use the new font as long as the program runs.

How can I create it? Preferably, it would be nice to set the
characters one at a time...

I think this cannot be done. Windows Forms controls need TrueType or
OpenType fonts, not "old" bitmap fonts.
 
I guess the only thing I can think of is to make an array of images one
image for each corresponding letter and then create a function to paint the
'font' on controls manually using the GDI+ functions. Although it is
probably going to be a pain in the rear and not look too good either!

Why not get a font creation package and make a True Type font? It's going to
be a bit of hastle but once you've done it you've got the font to use in any
app you want..

All the best,

Jon
 
Back
Top