[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 05:26:39 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=108881
--- Comment #54 from Christophe Dumez <dchris at gmail.com> 2013-08-27 05:26:01 PST ---
(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.
--
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