diff options
| author | Glenn Morris | 2014-11-01 11:05:30 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-11-01 11:05:30 -0700 |
| commit | d5d8ca30e5f481a32414c42bcc3b5a042061ff07 (patch) | |
| tree | febc223f19801e8e01b9498c5ba9d6c7bfcfa091 /src/macfont.m | |
| parent | e54c5e4e25098be9df9d9c46d32165887b0ff9d3 (diff) | |
| parent | b99e8f833671a2b52be654eb477830294c624a97 (diff) | |
| download | emacs-d5d8ca30e5f481a32414c42bcc3b5a042061ff07.tar.gz emacs-d5d8ca30e5f481a32414c42bcc3b5a042061ff07.zip | |
Merge from emacs-24; up to 117656
Diffstat (limited to 'src/macfont.m')
| -rw-r--r-- | src/macfont.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/macfont.m b/src/macfont.m index 366d087f8c2..c29ecc03f23 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -1086,7 +1086,7 @@ macfont_glyph_extents (struct font *font, CGGlyph glyph, | |||
| 1086 | bounds.size = | 1086 | bounds.size = |
| 1087 | CGSizeApplyAffineTransform (bounds.size, synthetic_italic_atfm); | 1087 | CGSizeApplyAffineTransform (bounds.size, synthetic_italic_atfm); |
| 1088 | } | 1088 | } |
| 1089 | if (macfont_info->synthetic_bold_p) | 1089 | if (macfont_info->synthetic_bold_p && ! force_integral_p) |
| 1090 | { | 1090 | { |
| 1091 | CGFloat d = | 1091 | CGFloat d = |
| 1092 | - synthetic_bold_factor * mac_font_get_size (macfont) / 2; | 1092 | - synthetic_bold_factor * mac_font_get_size (macfont) / 2; |
| @@ -2692,7 +2692,8 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 2692 | CGPoint *positions; | 2692 | CGPoint *positions; |
| 2693 | CGFloat font_size = mac_font_get_size (macfont_info->macfont); | 2693 | CGFloat font_size = mac_font_get_size (macfont_info->macfont); |
| 2694 | bool no_antialias_p = | 2694 | bool no_antialias_p = |
| 2695 | (macfont_info->antialias == MACFONT_ANTIALIAS_OFF | 2695 | (NILP (ns_antialias_text) |
| 2696 | || macfont_info->antialias == MACFONT_ANTIALIAS_OFF | ||
| 2696 | || (macfont_info->antialias == MACFONT_ANTIALIAS_DEFAULT | 2697 | || (macfont_info->antialias == MACFONT_ANTIALIAS_DEFAULT |
| 2697 | && font_size <= macfont_antialias_threshold)); | 2698 | && font_size <= macfont_antialias_threshold)); |
| 2698 | int len = to - from; | 2699 | int len = to - from; |
| @@ -2755,7 +2756,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 2755 | atfm = synthetic_italic_atfm; | 2756 | atfm = synthetic_italic_atfm; |
| 2756 | else | 2757 | else |
| 2757 | atfm = CGAffineTransformIdentity; | 2758 | atfm = CGAffineTransformIdentity; |
| 2758 | if (macfont_info->synthetic_bold_p) | 2759 | if (macfont_info->synthetic_bold_p && ! no_antialias_p)) |
| 2759 | { | 2760 | { |
| 2760 | CGContextSetTextDrawingMode (context, kCGTextFillStroke); | 2761 | CGContextSetTextDrawingMode (context, kCGTextFillStroke); |
| 2761 | CGContextSetLineWidth (context, synthetic_bold_factor * font_size); | 2762 | CGContextSetLineWidth (context, synthetic_bold_factor * font_size); |