comparison src/nsfont.m @ 102400:934376007cef

* nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Wed, 04 Mar 2009 21:21:25 +0000
parents e1a5d89a91dd
children 291f6c889881
comparison
equal deleted inserted replaced
102399:55ec3560f75e 102400:934376007cef
1051 1051
1052 fliptf.c = font->synthItal ? Fix2X (kATSItalicQDSkew) : 0.0; 1052 fliptf.c = font->synthItal ? Fix2X (kATSItalicQDSkew) : 0.0;
1053 1053
1054 CGContextSetFont (gcontext, font->cgfont); 1054 CGContextSetFont (gcontext, font->cgfont);
1055 CGContextSetFontSize (gcontext, font->size); 1055 CGContextSetFontSize (gcontext, font->size);
1056 if (ns_antialias_text == NO || font->size <= ns_antialias_threshold) 1056 if (ns_antialias_text == Qnil || font->size <= ns_antialias_threshold)
1057 CGContextSetShouldAntialias (gcontext, 0); 1057 CGContextSetShouldAntialias (gcontext, 0);
1058 else 1058 else
1059 CGContextSetShouldAntialias (gcontext, 1); 1059 CGContextSetShouldAntialias (gcontext, 1);
1060 if (EQ (ns_use_qd_smoothing, Qt)) 1060 if (EQ (ns_use_qd_smoothing, Qt))
1061 CGContextSetFontRenderingMode (gcontext, 2); /* 0 is Cocoa, 2 is QD */ 1061 CGContextSetFontRenderingMode (gcontext, 2); /* 0 is Cocoa, 2 is QD */