Chromium Code Reviews
        
  DescriptionImprove fallback for Burmese with leading punctuation + spacing mark
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
R=eae,kojii,behdad
Committed: https://crrev.com/d9280a5e951415e1b2c6c7958adda19b731a99fa
Cr-Commit-Position: refs/heads/master@{#434665}
   
  Patch Set 1 #Patch Set 2 : Baselines for platforms where test is run #Patch Set 3 : Reintroduce null hint check #Messages
    Total messages: 22 (12 generated)
     
  
  
       |