BUG: RichTextBox - wrong charspacing

G

Guest

The RichTextBox has problems displaying characters
of a font, when they have a left sidebearing smaller
than 0. Some space is inserted, but it shouldn´t.

To make it understandable:
Say we want a 'ñ' (n-tilde), but it wouldn´t
exist ... a common way to cope with this is to
create a '~' (tilde) char that starts at say -100
("left sidebearing") where 100 would be the normal width
of a char. Then the ~ would actually be placed above the
previous char.

This works fine in Win9x, but the RichTextBox
of VS6 and .NET 1.1 behave wrong on this in Win2k/XP
Some space behind is inserted. (For the above example it
would look like 'señ ora' ((only 6 chars)) ).
This is a bigger problem that affects fonts with custom
diacritics like the indic scripts.
"MS Word" for example behaves correctly, and even the
normal TextBox-control.

Any clues on that? Could I make the point clear?

Regards,

Peter
 
P

peter

This works fine in Win9x, but the RichTextBox
of VS6 and .NET 1.1 behave wrong on this in Win2k/XP
Some space behind is inserted.
[...]
"MS Word" for example behaves correctly, and even the
normal TextBox-control.

It seems the problem is in the RichEdit 3.0 control
(RichEd20.DLL) as also other richtext custom-controls
using it have the same problem.

To reproduce this, I 1st would have to find a free font
which I can send you. Do you need one (->MSFT...)??

peter
 

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