DescriptionCanvas fillText and measureText handle ideographic spaces differently.
According to specification[1] all space characters should be replaced with
0x0020 space character. (U+0009, U+000A, U+000C, U+000D -> U+0020)
BTW, ideographic space(U+3000) isn't space characters what the spec[2] says.
This change aligns behavior with Gecko and WebKit.
[1] text preparation algorithm:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#text-preparation-algorithm
[2] space characters
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
This patch is based on following patch from WebKit:
https://bugs.webkit.org/show_bug.cgi?id=108881
BUG=171639
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174663
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : #
Total comments: 1
Patch Set 4 : #Patch Set 5 : rebase #Patch Set 6 : #Patch Set 7 : add v/g/* test expectations #
Messages
Total messages: 23 (0 generated)
|