Strange font behaviour

  • Thread starter Thread starter Theo Verweij
  • Start date Start date
T

Theo Verweij

I am using a font to display in textboxes, labels and use it to print
using the printdocument.

When the "Enable Application Framework" option is disabled, the font
works only in a textbox; in a label and printing it, the font is
substituted.

When the "Enable Application Framework" option is enabled, the font
works in a textbox and in a label. But when printing it, nothing is printed.

It is a TrueType type 1 font, using the GDICharset 2.

Does anyone know how to resolve this problem?
 
I just found out that this problem occurs only with fonts that use
GDICharset 2.
If a font uses charset 1, everything works fine.

Is charset 2 incompatible with .Net 2.0?
 
Extra info:

The font is working in MS Word, MS Excel, Notepad, Wordpad; both viewing
and printing are no problem.
Only from VB2005 I get these problems with the font.

I tried to change the GdiCharSet, but this give no change.
 
Ok, Found the problem:

The non working fonts have defined the platforms Microsoft symbol and
Microsoft Unicode BMP.

The working fonts only support Microsoft symbol.

I removed the Unicode BMP platform from the font using a Font editor,
and now it is working correct from VB.
 
Back
Top