aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-20 10:57:59 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-20 10:57:59 +1000
commit79585e218c40f9010601e8af442b573ece40c5ea (patch)
treed64cab27d7ee75ef5a2a2e567dbe9c8ebd3823e9 /test/simpleTests.py
parented434975e5de00e91718b075f04492f69c1bb04a (diff)
downloadscintilla-mirror-79585e218c40f9010601e8af442b573ece40c5ea.tar.gz
Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 89e2ff69c..63efc8019 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1916,6 +1916,13 @@ class TestStyleAttributes(unittest.TestCase):
self.ed.SetDefaultFoldDisplayText(0, b"...")
self.assertEquals(self.ed.GetDefaultFoldDisplayText(), b"...")
+ def testFontLocale(self):
+ initialLocale = "en-us".encode("UTF-8")
+ testLocale = "zh-Hans".encode("UTF-8")
+ self.assertEquals(self.ed.GetFontLocale(), initialLocale)
+ self.ed.FontLocale = testLocale
+ self.assertEquals(self.ed.GetFontLocale(), testLocale)
+
class TestIndices(unittest.TestCase):
def setUp(self):
self.xite = Xite.xiteFrame