Chromium Code Reviews| Index: ui/gfx/render_text_harfbuzz.cc |
| diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc |
| index a2610f3787288305adb7f9d3c7b07044d8391511..9a9d76c91d2898225ed7ec8b62156f843bc5998c 100644 |
| --- a/ui/gfx/render_text_harfbuzz.cc |
| +++ b/ui/gfx/render_text_harfbuzz.cc |
| @@ -1290,6 +1290,16 @@ void RenderTextHarfBuzz::ShapeRun(const base::string16& text, |
| fallback_families.insert(fallback_families.end(), |
| uniscribe_fallbacks.begin(), uniscribe_fallbacks.end()); |
| } |
| + |
| + // Add Segoe UI and its associated linked fonts to the fallback font list to |
| + // ensure that the fallback list covers the basic cases. |
| + // http://crbug.com/467459. On some Windows configurations the default font |
| + // could be a raster font like System, which would not give us a reasonable |
| + // fallback font list. |
| + std::vector<std::string> default_fallback_families = |
| + GetFallbackFontFamilies("Segoe UI"); |
|
msw
2015/03/18 15:53:23
(1) Why does the bug only occur with DirectWrite?
scottmg
2015/03/18 16:13:04
It's definitely quite a mess. We did reproduce cor
ananta
2015/03/18 18:41:12
The current approach of font fallback does not wor
|
| + fallback_families.insert(fallback_families.end(), |
| + default_fallback_families.begin(), default_fallback_families.end()); |
| #endif |
| // Try shaping with the fallback fonts. |