aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cocoa/ScintillaCocoa.mm10
-rw-r--r--doc/ScintillaHistory.html4
2 files changed, 14 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();
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 45adf8dfd..9426de5fb 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -482,6 +482,10 @@
When scroll width is tracked, take width of annotation lines into account.
</li>
<li>
+ On Cocoa, apply font quality setting to line numbers.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1544/">Bug #1544</a>.
+ </li>
+ <li>
On Cocoa, clicking in margin now sets focus.
<a href="http://sourceforge.net/p/scintilla/bugs/1542/">Bug #1542</a>.
</li>