[Webkit-unassigned] [Bug 108881] Canvas fillText and measureText handle ideographic spaces differently
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 7 05:18:14 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=108881
--- Comment #6 from Martin Robinson <mrobinson at webkit.org> 2013-08-07 05:17:53 PST ---
(In reply to comment #5)
> The function isSpaceOrNewline returns true for the below characters
>
> 1. Ascii characters - U+0020, 0xD, 0xC, 0xB, 0xA, 0x9
> 2. All unicode white space characters
>
> According to http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Whitespace_characters :-
Thanks for the detailed explanation. It matches my understanding of the situation.
I think that shouldSpaceBeReplaced belongs in canvas class since its behavior is specific to the canvas spec. I also recommend basing it off of isSpaceOrNewline to avoid having to repeat the logic of deciding which characters are spaces.
For instance:
return c != 0x3000 && isSpaceOrNewline;
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list