aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Reitter2009-04-27 21:21:31 +0000
committerDavid Reitter2009-04-27 21:21:31 +0000
commit7fa87f63b4315e0bcf3a0b0ca28a5fca1a75cba9 (patch)
treea615fa62ca01c6da26dc37aa85880a878b452774 /src
parentb892d3c9b2ac6306b7ccdfd5bc02a84f6e43ed6c (diff)
downloademacs-7fa87f63b4315e0bcf3a0b0ca28a5fca1a75cba9.tar.gz
emacs-7fa87f63b4315e0bcf3a0b0ca28a5fca1a75cba9.zip
nsfont.m (nsfont_open): remove unused variable shrink. Remove commented-out code.
Diffstat (limited to 'src')
-rw-r--r--src/nsfont.m17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/nsfont.m b/src/nsfont.m
index b2e9c82bd67..a6ea4843067 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -630,7 +630,7 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
630 font->props[FONT_FILE_INDEX] = Qnil; 630 font->props[FONT_FILE_INDEX] = Qnil;
631 631
632 { 632 {
633 double expand, shrink, hshrink; 633 double expand, hshrink;
634 float full_height, min_height, hd; 634 float full_height, min_height, hd;
635 const char *fontName = [[nsfont fontName] UTF8String]; 635 const char *fontName = [[nsfont fontName] UTF8String];
636 int len = strlen (fontName); 636 int len = strlen (fontName);
@@ -660,21 +660,9 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
660 hd = full_height - min_height; 660 hd = full_height - min_height;
661 661
662 /* standard height, similar to Carbon. Emacs.app: was 0.5 by default. */ 662 /* standard height, similar to Carbon. Emacs.app: was 0.5 by default. */
663 expand = 0.0; 663 expand = 0.0;
664 shrink = 1.0;
665 hshrink = 1.0; 664 hshrink = 1.0;
666 665
667 /*
668 if (expand < 0.0)
669 {
670 shrink = 1 + expand;
671 hshrink = 1 + expand / 2.0;
672 expand = 0.0;
673 }
674 else
675 shrink = hshrink = 1.0;
676 */
677
678 font_info->underpos = 2; /*[sfont underlinePosition] is often clipped out */ 666 font_info->underpos = 2; /*[sfont underlinePosition] is often clipped out */
679 font_info->underwidth = [sfont underlineThickness]; 667 font_info->underwidth = [sfont underlineThickness];
680 font_info->size = font->pixel_size; 668 font_info->size = font->pixel_size;
@@ -691,7 +679,6 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
691 font_info->max_bounds.lbearing = lrint (brect.origin.x); 679 font_info->max_bounds.lbearing = lrint (brect.origin.x);
692 font_info->max_bounds.rbearing = 680 font_info->max_bounds.rbearing =
693 lrint (brect.size.width - font_info->width); 681 lrint (brect.size.width - font_info->width);
694 /*font_info->width + (font_info->ital ? 0.2 * font_info->height : 0); */
695 682
696#ifdef NS_IMPL_COCOA 683#ifdef NS_IMPL_COCOA
697 /* set up synthItal and the CG font */ 684 /* set up synthItal and the CG font */