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
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