* src/nsterm.m (syms_of_nsterm): Define var ns-use-thin-smoothing.
* src/macfont.m (macfont_draw): Use font smoothing.
Copyright-paperwork-exempt: yes
if (no_antialias_p)
CGContextSetShouldAntialias (context, false);
+ if (!NILP (ns_use_thin_smoothing))
+ {
+ CGContextSetShouldSmoothFonts(context, YES);
+ CGContextSetFontSmoothingStyle(context, 16);
+ }
+
CGContextSetTextMatrix (context, atfm);
CGContextSetTextPosition (context, text_position.x, text_position.y);
"Non-nil (the default) means to render text antialiased.");
ns_antialias_text = Qt;
+ DEFVAR_LISP ("ns-use-thin-smoothing", ns_use_thin_smoothing,
+ "Non-nil turns on a font smoothing method that produces thinner strokes.");
+ ns_use_thin_smoothing = Qnil;
+
DEFVAR_LISP ("ns-confirm-quit", ns_confirm_quit,
"Whether to confirm application quit using dialog.");
ns_confirm_quit = Qnil;