src/lib/memgfx.c 1.52
1.52 2010/03/27 04:23:08 kent
Adding a bunch of xfree fonts. Moving fonts themselves to a font subdirectory. Adding explicit lineHeight to font structure rather than just calculating it.
Index: src/lib/memgfx.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/memgfx.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -b -B -U 4 -r1.51 -r1.52
--- src/lib/memgfx.c 20 Jun 2009 17:25:10 -0000 1.51
+++ src/lib/memgfx.c 27 Mar 2010 04:23:08 -0000 1.52
@@ -584,10 +584,9 @@
int mgFontLineHeight(MgFont *font)
/* How many pixels to next line ideally? */
{
-int celHeight = font_cel_height(font);
-return celHeight + 1 + (celHeight/5);
+return font_line_height(font);
}
int mgFontWidth(MgFont *font, char *chars, int charCount)
/* How wide are a couple of letters? */