diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-20 10:57:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-20 10:57:59 +1000 |
commit | 79585e218c40f9010601e8af442b573ece40c5ea (patch) | |
tree | d64cab27d7ee75ef5a2a2e567dbe9c8ebd3823e9 /src/Editor.cxx | |
parent | ed434975e5de00e91718b075f04492f69c1bb04a (diff) | |
download | scintilla-mirror-79585e218c40f9010601e8af442b573ece40c5ea.tar.gz |
Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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<int>(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); |