Bug 1342841 - Use Leelawadi UI as fallback for more scripts than just Thai, as it has additional character support. r=m_kato, a=gchang
authorJonathan Kew <jkew@mozilla.com>
Tue, 28 Feb 2017 09:23:05 +0000
changeset 378838 7363ef4a20e5d3ee808aa3f1eaa15254d01a16c2
parent 378837 2f4e997661be82b317ce6d6c185811f1a4fa9891
child 378839 0da8d305ce0072bf900c6d17d5372b907ec72c34
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersm_kato, gchang
bugs1342841
milestone53.0a2
Bug 1342841 - Use Leelawadi UI as fallback for more scripts than just Thai, as it has additional character support. r=m_kato, a=gchang
gfx/thebes/gfxWindowsPlatform.cpp
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -717,16 +717,17 @@ gfxWindowsPlatform::GetCommonFallbackFon
             break;
         case 0x09:
             aFontList.AppendElement(kFontNirmalaUI);
             aFontList.AppendElement(kFontUtsaah);
             aFontList.AppendElement(kFontAparajita);
             break;
         case 0x0e:
             aFontList.AppendElement(kFontLaoUI);
+            aFontList.AppendElement(kFontLeelawadeeUI);
             break;
         case 0x10:
             aFontList.AppendElement(kFontMyanmarText);
             break;
         case 0x11:
             aFontList.AppendElement(kFontMalgunGothic);
             break;
         case 0x12:
@@ -737,26 +738,27 @@ gfxWindowsPlatform::GetCommonFallbackFon
         case 0x14:
         case 0x15:
         case 0x16:
             aFontList.AppendElement(kFontEuphemia);
             aFontList.AppendElement(kFontSegoeUISymbol);
             break;
         case 0x17:
             aFontList.AppendElement(kFontKhmerUI);
+            aFontList.AppendElement(kFontLeelawadeeUI);
             break;
         case 0x18:  // Mongolian
             aFontList.AppendElement(kFontMongolianBaiti);
             aFontList.AppendElement(kFontEuphemia);
             break;
         case 0x19:
             aFontList.AppendElement(kFontMicrosoftTaiLe);
             aFontList.AppendElement(kFontMicrosoftNewTaiLue);
             aFontList.AppendElement(kFontKhmerUI);
-            break;
+            aFontList.AppendElement(kFontLeelawadeeUI);
             break;
         case 0x1a:
             aFontList.AppendElement(kFontLeelawadeeUI);
             break;
         case 0x1c:
             aFontList.AppendElement(kFontNirmalaUI);
             break;
         case 0x20:  // Symbol ranges
@@ -822,16 +824,17 @@ gfxWindowsPlatform::GetCommonFallbackFon
             break;
         case 0xa8:
              aFontList.AppendElement(kFontMicrosoftPhagsPa);
              aFontList.AppendElement(kFontNirmalaUI);
              break;
         case 0xa9:
              aFontList.AppendElement(kFontMalgunGothic);
              aFontList.AppendElement(kFontJavaneseText);
+             aFontList.AppendElement(kFontLeelawadeeUI);
              break;
         case 0xaa:
              aFontList.AppendElement(kFontMyanmarText);
              break;
         case 0xab:
              aFontList.AppendElement(kFontEbrima);
              aFontList.AppendElement(kFontNyala);
              break;