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. --- src/Editor.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 63ed979d9..208a075aa 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7199,6 +7199,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETELEMENTALLOWSTRANSLUCENT: return vs.ElementAllowsTranslucent(static_cast(wParam)); + case SCI_SETFONTLOCALE: + if (lParam) { + vs.SetFontLocaleName(CharPtrFromSPtr(lParam)); + InvalidateStyleRedraw(); + } + break; + + case SCI_GETFONTLOCALE: + return StringResult(lParam, vs.localeName.c_str()); + #ifdef INCLUDE_DEPRECATED_FEATURES case SCI_SETSTYLEBITS: vs.EnsureStyle(0xff); -- cgit v1.2.3