From 0b5be59ffecd30203ecb72245681dc9291c5beaf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 2 May 2013 09:46:17 +1000 Subject: Feature: [feature-requests:#988]. Cocoa support for font quality. From Mark Yen. --- cocoa/ScintillaTest/AppController.mm | 5 + cocoa/ScintillaTest/English.lproj/MainMenu.xib | 124 +++++++++++++++++++++++++ 2 files changed, 129 insertions(+) (limited to 'cocoa/ScintillaTest') diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm index c28974109..168a67681 100644 --- a/cocoa/ScintillaTest/AppController.mm +++ b/cocoa/ScintillaTest/AppController.mm @@ -271,6 +271,11 @@ static const char * box_xpm[] = { [self showAutocompletion]; } +-(IBAction) setFontQuality: (id) sender +{ + [ScintillaView directCall:mEditor message:SCI_SETFONTQUALITY wParam:[sender tag] lParam:0]; +} + @end //-------------------------------------------------------------------------------------------------- diff --git a/cocoa/ScintillaTest/English.lproj/MainMenu.xib b/cocoa/ScintillaTest/English.lproj/MainMenu.xib index 6de460712..e2d93cca3 100644 --- a/cocoa/ScintillaTest/English.lproj/MainMenu.xib +++ b/cocoa/ScintillaTest/English.lproj/MainMenu.xib @@ -856,6 +856,56 @@ + + + Font Quality + + 2147483647 + + + submenuAction: + + Font Quality + + YES + + + Default + + 2147483647 + + + + + + Non-antialiased + + 2147483647 + + + 1 + + + + Antialiased + + 2147483647 + + + 2 + + + + LCD Optimized + + 2147483647 + + + 3 + + + + YES @@ -1833,6 +1883,38 @@ 468 + + + setFontQuality: + + + + 475 + + + + setFontQuality: + + + + 476 + + + + setFontQuality: + + + + 477 + + + + setFontQuality: + + + + 478 + @@ -2537,6 +2619,7 @@ + @@ -2771,6 +2854,47 @@ + + 469 + + + YES + + + + + + 470 + + + YES + + + + + + + + + 471 + + + + + 472 + + + + + 473 + + + + + 474 + + + -- cgit v1.2.3