Problem with label word wrap and accented characters

G

Guest

Hi,

It seems that the .NET Label control incorrectly wraps words at accented
characters (or non-ascii characters in general). The same is observed when
using Graphics.DrawString() directly. I am using .NET Framework 1.1.

The text "Vous obtiendrez une meilleure traduction en évitant les
abréviations et les tournures familières." is wrapped by the label as follows:

Vous obtiendrez une meilleure traduction en é[\n]
vitant les abréviations et les tournures familiè[\n]
res

If I simply remove the diacritics, it wraps correctly:

Vous obtiendrez une meilleure traduction en[\n]
evitant les abreviations et les tournures[\n]
familieres

I also observe incorrect word wrapping when using the Greek alphabet.

Where can I find information about this problem? Is there a solution?

Thank you,
Bret
 
L

Linda Liu [MSFT]

Hi Bret,

I performed a test based on your description and did reproduce the issue on
my side.

My test shows that the problem exists on East-Asia characters and Greek
alphabet. I also find that the problem exists on TextBox.

I also have a try drawing the text in the label using TextRenderer, but
with no luck.

I have searched in our inner database, and found a similar issue in it. But
unfortunately, the document I found didn't point out a workaround of this
problem.

I will contact with our product team to see if there's a workaround. And I
will get the result back to you ASAP. I appreciate your patience!


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi Linda,

Thanks for your quick response.

I've done some further investigation and found that on my side the problem
is related to the font. I see the problem when I use font family "Arial
Unicode MS" but not if I use font family "Microsoft Sans Serif" or "Arial".

Also, on my tests, I don't see the problem using a TextBox component.

Thanks,
Bret
 
L

Linda Liu [MSFT]

Hi Bret,

Thank you for your prompt response.

I have sent an email to our product team for this issue, but unfortunately,
the response I got said that this won't be fixed currently, according to
its severity.

Since the problem is related to the font, you may use the font on which the
problem doesn't exist.

Thank you for your understanding!


Sincerely,
Linda Liu
Microsoft Online Community Support
 
L

Linda Liu [MSFT]

Hi Bret,

How about the problem now? Could you adopt the workaround of changing the
font fo the label?

If you have any concerns, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
G

Guest

Hi Linda,

Yes, I have just changed the font of the label to resolve the problem in my
application.

Thanks,
Bret
 

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