Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1520)

Issue 2539733002: Improve fallback for Burmese with leading punctuation + spacing mark (Closed)

Created:
4 years ago by drott
Modified:
4 years ago
Reviewers:
kojii, eae, behdad
CC:
ajuma+watch_chromium.org, apavlov+blink_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, caseq+blink_chromium.org, chromium-reviews, danakj+watch_chromium.org, devtools-reviews_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mac-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve fallback for Burmese with leading punctuation + spacing mark Reland after revert in 1b8f4236e2dbf4e07bf0171300003168633b8660, previous CL https://codereview.chromium.org/2530153002/ Previously failing Win10 test needs a rebaseline. Issue 618178 describes an example where a Burmese text run starts with a leading punctuation character followed by a combining spacing mark. This grapheme cannot be shaped with the default font, since Times for example cannot display the combination of a left quote with a Burmese combining mark. Our fallback code attempts to find a fallback font based on the first character at the beginning of an extracted unshaped sub-run, which does not lead to finding a font suitable for Myanmar text in this case. So in a way it runs into a fallback trap, where no fallback hint helps to find the right fallback font and the whole run ends up as notdef glyphs. This CL attempts to resolve this by looking for a better fallback hint character, which is not script common or inherited, if such is available. This improves the situation for the Burmese text from the issue report. In addition, as a better fix we should give higher importance to the locale information in font fallback, filed as issue 668706. BUG=618178 TBR=eae,kojii,behdad Committed: https://crrev.com/04f5eaaa234b142614e315f3ccd94f4e55015f10 Cr-Commit-Position: refs/heads/master@{#434944}

Patch Set 1 #

Messages

Total messages: 7 (3 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2539733002/1
4 years ago (2016-11-29 08:51:08 UTC) #2
kojii
lgtm
4 years ago (2016-11-29 09:27:01 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-29 10:20:50 UTC) #5
commit-bot: I haz the power
4 years ago (2016-11-29 10:22:54 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/04f5eaaa234b142614e315f3ccd94f4e55015f10
Cr-Commit-Position: refs/heads/master@{#434944}

Powered by Google App Engine
This is Rietveld 408576698