diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-11-03 14:48:22 +1100 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-11-03 14:48:22 +1100 |
| commit | 5111494639424c3989874a82bba8a58df6f826ff (patch) | |
| tree | 12dd3b249ec6df19a67e1aa1d423256772dd3ee7 /cocoa | |
| parent | 36c96f354d96a533c68a9ffab047ac6e6326e32f (diff) | |
| download | scintilla-mirror-5111494639424c3989874a82bba8a58df6f826ff.tar.gz | |
Bug [#1544]. Mac font quality not applied to margin.
From Mark Yen.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index e5069cff7..7e2c00ebb 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1521,6 +1521,16 @@ void ScintillaCocoa::PaintMargin(NSRect aRect) Surface *sw = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (sw) { + CGContextSetAllowsAntialiasing(gc, + vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED); + CGContextSetAllowsFontSmoothing(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(gc, + vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT || + vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); +#endif sw->Init(gc, wMargin.GetID()); PaintSelMargin(sw, rc); sw->Release(); |
