[Webkit-unassigned] [Bug 108881] Canvas fillText and measureText handle ideographic spaces differently

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 27 06:11:57 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=108881





--- Comment #56 from Rashmi Shyamasundar <rashmi.s2 at samsung.com>  2013-08-27 06:11:20 PST ---
(In reply to comment #54)
> (In reply to comment #53)
> > In the latest patch, I have incorporated all the comments from Mr. Christophe Dumez and Mr. Darin Adler except that I am using chractersWithNullTermination(). This is because, if I use "memcpy(vector.data(), text.characters(), text.length());" then, the test Layouttests/canvas/philip/tests/2d.text.draw.space.collapse.nonspace.html fails since the text is not properly copied into vector.
> 
> Have you tried?
> memcpy(vector.data(), text.characters(), text.length() * sizeof(UChar));
> 
> I believe UChar has size 2, not one (unlike char) so you end up copying half the vector.


Yes. That works!

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