Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » Incorrect position of chars in DocEdit ctrl.
Incorrect position of chars in DocEdit ctrl. [message #23845] Thu, 26 November 2009 10:29 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello Mirek,

I found a little bug(maybe) of incorrect positioning of chars if I use Unicode format.

Here is a screenshot:
index.php?t=getfile&id=2008&private=0

An after when I left click mouse on problem zone then char are repositioning. But the end of text do not show
here is a another screenshot:
index.php?t=getfile&id=2009&private=0

OS: windows xp sp3
svn version: the latest (1723)

With respect, John.

P.S. I attached the example here (full address: http://www.ultimatepp.org/forum/index.php?t=msg&goto=238 47&#msg_23847 )

[Updated on: Thu, 26 November 2009 10:50]

Report message to a moderator

Re: Incorrect position of chars in DocEdit ctrl. [message #23886 is a reply to message #23845] Tue, 01 December 2009 08:31 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13468
Registered: November 2005
Ultimate Member
The output does not seem like screenshots, I am getting something like:


{"sentences":[{"trans":"???????? ????? ????? ??? ????????","orig":"write here text to translate","translit":"Napishite zdes' tekst dlya perevoda"}],"src":"en"}

EDIT: Never mind, found that option, reproduced the bug, working on it...

[Updated on: Tue, 01 December 2009 09:13]

Report message to a moderator

Re: Incorrect position of chars in DocEdit ctrl. [message #23887 is a reply to message #23886] Tue, 01 December 2009 09:46 Go to previous message
mirek is currently offline  mirek
Messages: 13468
Registered: November 2005
Ultimate Member
Well, the problem is caused by 0x2b9 character - that is not supposed to be displayed alone.

It is "Spacing modifier letter":

http://en.wikipedia.org/wiki/Unicode_Phonetic_Symbols

It looks like Win32 has problems combining these letters, at least when character spacing is used in DrawText (which is what DocEdit does).

I am not quite sure what to do with the problem...

Should this be handled by DrawText? It looks like if I omit spacing info (dx parameter), Win32 draws these characters quite OK....

Mirek
Previous Topic: How to trim leading and trailing spaces in EditString?
Next Topic: String to double
Goto Forum:
  


Current Time: Wed Dec 08 17:34:28 CET 2021

Total time taken to generate the page: 0.01179 seconds