Skip to content

Instantly share code, notes, and snippets.

@papaeye
Last active December 15, 2015 02:29
Show Gist options
  • Save papaeye/5187551 to your computer and use it in GitHub Desktop.
Save papaeye/5187551 to your computer and use it in GitHub Desktop.
Tweak font height of Emacs 24.4 Mac port
diff --git a/src/macfont.m b/src/macfont.m
index 69bde9f..f18738c 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2581,8 +2581,11 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size)
ascent += (ascent + descent) * .15f;
else if (CFStringHasPrefix (family_name, CFSTR ("Hiragino")))
{
- leading *= .25f;
- ascent += leading;
+ leading = 0;
+ }
+ else if (CFEqual (family_name, CFSTR ("Menlo")))
+ {
+ ascent += 0.5f;
}
CFRelease (family_name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment