diff options
author | nyamatongwe <devnull@localhost> | 2009-11-02 04:51:51 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-11-02 04:51:51 +0000 |
commit | 212257e28c87cd6ed2ff244ee6518be0c73fa342 (patch) | |
tree | 517893f316edf898a972316bbcd3b7b64c82de0f /src/Editor.cxx | |
parent | a307f5df25fbf8f4e545bdd74a7da6a466568497 (diff) | |
download | scintilla-mirror-212257e28c87cd6ed2ff244ee6518be0c73fa342.tar.gz |
Added setting for font quality to allow application to choose anti-aliased,
non-anti-aliased or lcd-optimized text.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 727429921..a68046b90 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7001,6 +7001,15 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { InvalidateStyleRedraw(); break; + case SCI_SETFONTQUALITY: + vs.extraFontFlag &= ~SC_EFF_QUALITY_MASK; + vs.extraFontFlag |= (wParam & SC_EFF_QUALITY_MASK); + InvalidateStyleRedraw(); + break; + + case SCI_GETFONTQUALITY: + return (vs.extraFontFlag & SC_EFF_QUALITY_MASK); + case SCI_SETTABWIDTH: if (wParam > 0) { pdoc->tabInChars = wParam; |