Last active
December 15, 2015 02:29
-
-
Save papaeye/5187551 to your computer and use it in GitHub Desktop.
Tweak font height of Emacs 24.4 Mac port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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