From 79585e218c40f9010601e8af442b573ece40c5ea Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 20 Apr 2021 10:57:59 +1000 Subject: Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite. --- test/simpleTests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3