From 660b6f8f61df6b364d8f6c3e62cc18091d3435d0 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Wed, 11 Oct 2017 22:12:42 +0100 Subject: [PATCH] Bug 1403166 - For Khmer AAT fonts, enable the Line Initial Smart Swashes feature, which is (incorrectly) required for some vowels to render properly. r=jrmuizel --- gfx/thebes/gfxCoreTextShaper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/thebes/gfxCoreTextShaper.cpp b/gfx/thebes/gfxCoreTextShaper.cpp index 59e06470a15b..2add25e00804 100644 --- a/gfx/thebes/gfxCoreTextShaper.cpp +++ b/gfx/thebes/gfxCoreTextShaper.cpp @@ -81,7 +81,8 @@ IsBuggyIndicScript(unicode::Script aScript) { return aScript == unicode::Script::BENGALI || aScript == unicode::Script::KANNADA || - aScript == unicode::Script::ORIYA; + aScript == unicode::Script::ORIYA || + aScript == unicode::Script::KHMER; } bool @@ -119,7 +120,7 @@ gfxCoreTextShaper::ShapeText(DrawTarget *aDrawTarget, // for "split vowels" to work in at least Bengali and Kannada fonts. // Affected fonts include Bangla MN, Bangla Sangam MN, Kannada MN, // Kannada Sangam MN. See bugs 686225, 728557, 953231, 1145515. - // Also applies to Oriya fonts, see bug 1370927. + // Also applies to Oriya and Khmer, see bug 1370927 and bug 1403166. tempCTFont = CreateCTFontWithFeatures(::CTFontGetSize(mCTFont), aShapedText->DisableLigatures()