Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r220797 - [HarfBuzz] Decomposed Vietnamese characters are rende…
…red incorrectly https://bugs.webkit.org/show_bug.cgi?id=174418 Patch by Fujii Hironori <Hironori.Fujii@sony.com> on 2017-08-16 Reviewed by Michael Catanzaro. Source/WebCore: HarfBuzzShaper should normalize the input text before collecting HarfBuzzRuns. Actually, HarfBuzzShaper::setNormalizedBuffer does the task. But, this function hasn't been called from anywhere since Bug 90951. Test: fast/text/international/vietnamese-nfd.html imported/blink/fast/text/international/text-shaping-arabic-diffs.html * platform/graphics/harfbuzz/HarfBuzzShaper.cpp: (WebCore::HarfBuzzShaper::HarfBuzzShaper): Call setNormalizedBuffer instead of normalizeCharacters. (WebCore::normalizeCharacters): Deleted. (WebCore::normalizeSpacesAndMirrorChars) Use FontCascade::treatAsZeroWidthSpaceInComplexScript instead of FontCascade::treatAsZeroWidthSpace to preserve ZWJ and ZWNJ. LayoutTests: * fast/text/international/vietnamese-nfd-expected.html: Added. * fast/text/international/vietnamese-nfd.html: Added.
- Loading branch information
1 parent
17c8ea2
commit 8a7555d
Showing
5 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
LayoutTests/fast/text/international/vietnamese-nfd-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
font-size: 30px; | ||
font-family: Helvetica, sans; | ||
} | ||
</style> | ||
<body> | ||
ã ẫ ẵ ẽ ễ ĩ õ ỗ ỡ ũ ữ ỹ<br> | ||
ạ ậ ặ ẹ ệ ị ọ ộ ợ ụ ự ỵ<br> | ||
ả ẩ ẳ ẻ ể ỉ ỏ ổ ở ủ ử ỷ<br> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
font-size: 30px; | ||
font-family: Helvetica, sans; | ||
} | ||
</style> | ||
<body> | ||
ã ẫ ẵ ẽ ễ ĩ õ ỗ ỡ ũ ữ ỹ<br> | ||
ạ ậ ặ ẹ ệ ị ọ ộ ợ ụ ự ỵ<br> | ||
ả ẩ ẳ ẻ ể ỉ ỏ ổ ở ủ ử ỷ<br> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters