/[emacs]/emacs/src/macterm.c
ViewVC logotype

Diff of /emacs/src/macterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.143 by mituharu, Sun Nov 13 05:46:52 2005 UTC revision 1.144 by mituharu, Sat Nov 19 06:35:19 2005 UTC
# Line 867  mac_draw_image_string_16 (f, gc, x, y, b Line 867  mac_draw_image_string_16 (f, gc, x, y, b
867  #if USE_CG_TEXT_DRAWING  #if USE_CG_TEXT_DRAWING
868  static XCharStruct *x_per_char_metric P_ ((XFontStruct *, XChar2b *));  static XCharStruct *x_per_char_metric P_ ((XFontStruct *, XChar2b *));
869    
870    static int cg_text_anti_aliasing_threshold = 8;
871    
872    static void
873    init_cg_text_anti_aliasing_threshold ()
874    {
875      Lisp_Object val =
876        Fmac_get_preference (build_string ("AppleAntiAliasingThreshold"),
877                             Qnil, Qnil, Qnil);
878    
879      if (INTEGERP (val))
880        cg_text_anti_aliasing_threshold = XINT (val);
881    }
882    
883  static int  static int
884  mac_draw_string_cg (f, gc, x, y, buf, nchars)  mac_draw_string_cg (f, gc, x, y, buf, nchars)
885       struct frame *f;       struct frame *f;
# Line 915  mac_draw_string_cg (f, gc, x, y, buf, nc Line 928  mac_draw_string_cg (f, gc, x, y, buf, nc
928                              1.0);                              1.0);
929    CGContextSetFont (context, GC_FONT (gc)->cg_font);    CGContextSetFont (context, GC_FONT (gc)->cg_font);
930    CGContextSetFontSize (context, GC_FONT (gc)->mac_fontsize);    CGContextSetFontSize (context, GC_FONT (gc)->mac_fontsize);
931      if (GC_FONT (gc)->mac_fontsize <= cg_text_anti_aliasing_threshold)
932        CGContextSetShouldAntialias (context, false);
933  #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030  #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
934    CGContextSetTextPosition (context, gx, gy);    CGContextSetTextPosition (context, gx, gy);
935    CGContextShowGlyphsWithAdvances (context, glyphs, advances, nchars);    CGContextShowGlyphsWithAdvances (context, glyphs, advances, nchars);
# Line 6784  init_font_name_table () Line 6799  init_font_name_table ()
6799    text_encoding_info_alist = create_text_encoding_info_alist ();    text_encoding_info_alist = create_text_encoding_info_alist ();
6800    
6801  #if USE_ATSUI  #if USE_ATSUI
6802    #if USE_CG_TEXT_DRAWING
6803      init_cg_text_anti_aliasing_threshold ();
6804    #endif
6805    if (!NILP (assq_no_quit (make_number (kTextEncodingMacUnicode),    if (!NILP (assq_no_quit (make_number (kTextEncodingMacUnicode),
6806                             text_encoding_info_alist)))                             text_encoding_info_alist)))
6807      {      {

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26