473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Strange font behaviour

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?
Jul 26 '06 #1
3 1461
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?

Theo Verweij wrote:
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?
Jul 26 '06 #2
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.
Jul 26 '06 #3
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.
Jul 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tim Lister | last post by:
I'm used to seeing crappy pages with FONT tags littered everywhere, even for some bizarre reason when CSS is in use also, so i was less than ecstatic when i saw it happening in yet another page. ...
0
by: h | last post by:
Hello everyone I am baffled by the behaviour of a webpage that I am trying to design(when viewed in ie6). I believe the problem arises when I use floats(at least that is the only occasion...
4
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go,...
7
by: M O J O | last post by:
Hi, I'm developing a asp.net application and ran into a strange css problem. I want all my links to have a dashed underline and when they are hovered, it must change to a solid line. Sounds...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
3
by: ramata | last post by:
Hi I am using StringBuilder to compose an email. The body of email consists of a table for which data has to be taken fron SQL Server. I use append method to add text to the StringBuilder...
1
by: Jukka K. Korpela | last post by:
This is pretty theoretical, but it might matter if you convert existing HTML documents to more modern style, getting rid of <fontmarkup. One might expect that just removing all attributes from a...
3
by: amygdala | last post by:
Hi there, I'm trying to replace single quoted attributes in HTML tags with double quotes. What I've come up with is this: function replaceSingleQuotesInsideTags( $input ) { $output =...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.