diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-06-05 14:21:39 +1000 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-06-05 14:21:39 +1000 |
| commit | eaf274c2f4ac962b3e5fad5100023ca0e41bd153 (patch) | |
| tree | 0c2c257892afc02ef9bb5cb6cf053196ae06cfa9 | |
| parent | fb2c65fb27d115e562a23aa8fd6fa4fe5b256800 (diff) | |
| download | scintilla-mirror-eaf274c2f4ac962b3e5fad5100023ca0e41bd153.tar.gz | |
Turn font smoothing on for font quality level SC_EFF_QUALITY_LCD_OPTIMIZED.
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 910cd344a..3e5c46f00 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1528,6 +1528,8 @@ bool ScintillaCocoa::SyncPaint(void* gc, PRectangle rc) { CGContextSetAllowsAntialiasing((CGContextRef)gc, vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED); + CGContextSetAllowsFontSmoothing((CGContextRef)gc, + vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 if (CGContextSetAllowsFontSubpixelPositioning != NULL) CGContextSetAllowsFontSubpixelPositioning((CGContextRef)gc, |
