aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-11-02 04:51:51 +0000
committernyamatongwe <unknown>2009-11-02 04:51:51 +0000
commitc563199dde32ce1d04e95c478dbd6a3e352f5d4d (patch)
tree517893f316edf898a972316bbcd3b7b64c82de0f /include
parentdde4d3e2775b52a8b678d209c2299ec637210a03 (diff)
downloadscintilla-mirror-c563199dde32ce1d04e95c478dbd6a3e352f5d4d.tar.gz
Added setting for font quality to allow application to choose anti-aliased,
non-anti-aliased or lcd-optimized text.
Diffstat (limited to 'include')
-rw-r--r--include/Platform.h2
-rw-r--r--include/Scintilla.h7
-rw-r--r--include/Scintilla.iface15
3 files changed, 23 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 1d4df4884..b5d6d9bf8 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -295,7 +295,7 @@ public:
virtual ~Font();
virtual void Create(const char *faceName, int characterSet, int size,
- bool bold, bool italic, bool extraFontFlag=false);
+ bool bold, bool italic, int extraFontFlag=0);
virtual void Release();
FontID GetID() { return fid; }
diff --git a/include/Scintilla.h b/include/Scintilla.h
index c7d30ca3a..e38d74cba 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -478,6 +478,13 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_APPENDTEXT 2282
#define SCI_GETTWOPHASEDRAW 2283
#define SCI_SETTWOPHASEDRAW 2284
+#define SC_EFF_QUALITY_MASK 0xF
+#define SC_EFF_QUALITY_DEFAULT 0
+#define SC_EFF_QUALITY_NON_ANTIALIASED 1
+#define SC_EFF_QUALITY_ANTIALIASED 2
+#define SC_EFF_QUALITY_LCD_OPTIMIZED 3
+#define SCI_SETFONTQUALITY 2611
+#define SCI_GETFONTQUALITY 2612
#define SCI_TARGETFROMSELECTION 2287
#define SCI_LINESJOIN 2288
#define SCI_LINESSPLIT 2289
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index c524b7195..8f7c545eb 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1205,6 +1205,21 @@ get bool GetTwoPhaseDraw=2283(,)
# and then the foreground. This avoids chopping off characters that overlap the next run.
set void SetTwoPhaseDraw=2284(bool twoPhase,)
+# Control font anti-aliasing.
+
+enu FontQuality=SC_EFF_
+val SC_EFF_QUALITY_MASK=0xF
+val SC_EFF_QUALITY_DEFAULT=0
+val SC_EFF_QUALITY_NON_ANTIALIASED=1
+val SC_EFF_QUALITY_ANTIALIASED=2
+val SC_EFF_QUALITY_LCD_OPTIMIZED=3
+
+# Choose the quality level for text from the FontQuality enumeration.
+set void SetFontQuality=2611(int fontQuality,)
+
+# Retrieve the quality level for text.
+get int GetFontQuality=2612(,)
+
# Make the target range start and end be the same as the selection range start and end.
fun void TargetFromSelection=2287(,)