bug 851495 - add Khmer to table of scripts requiring shaping support. r=jdaggett
authorJonathan Kew <jkew@mozilla.com>
Fri, 15 Mar 2013 17:08:55 +0000
changeset 124941 aed82bbaefa48b9c943ee5ad86b58d0a2c407cc8
parent 124940 31fa8606869478b72a07e4084540d659bfa5b7b9
child 124942 d63f896ab3daaf1378a43db30902b7cef7eddbe8
push id24438
push userphilringnalda@gmail.com
push dateSat, 16 Mar 2013 22:12:32 +0000
treeherdermozilla-central@0b052daa913c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs851495
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 851495 - add Khmer to table of scripts requiring shaping support. r=jdaggett
gfx/thebes/gfxMacPlatformFontList.mm
--- a/gfx/thebes/gfxMacPlatformFontList.mm
+++ b/gfx/thebes/gfxMacPlatformFontList.mm
@@ -194,20 +194,21 @@ static const ScriptRange sComplexScripts
                         TRUETYPE_TAG('k','n','d','a'), 0 } },
     { 0x0D00, 0x0D7F, { TRUETYPE_TAG('m','l','m','2'),
                         TRUETYPE_TAG('m','l','y','m'), 0 } },
     { 0x0D80, 0x0DFF, { TRUETYPE_TAG('s','i','n','h'), 0, 0 } },
     { 0x0E80, 0x0EFF, { TRUETYPE_TAG('l','a','o',' '), 0, 0 } },
     { 0x0F00, 0x0FFF, { TRUETYPE_TAG('t','i','b','t'), 0, 0 } },
     { 0x1000, 0x109f, { TRUETYPE_TAG('m','y','m','r'),
                         TRUETYPE_TAG('m','y','m','2'), 0 } },
+    { 0x1780, 0x17ff, { TRUETYPE_TAG('k','h','m','r'), 0, 0 } },
+    // Khmer Symbols (19e0..19ff) don't seem to need any special shaping
     { 0xaa60, 0xaa7f, { TRUETYPE_TAG('m','y','m','r'),
                         TRUETYPE_TAG('m','y','m','2'), 0 } },
     // Thai seems to be "renderable" without AAT morphing tables
-    // xxx - Khmer?
 };
 
 static void
 DestroyBlobFunc(void* aUserData)
 {
     FallibleTArray<uint8_t>* data = static_cast<FallibleTArray<uint8_t>*>(aUserData);
     delete data;
 }