src/lib/gemfont.h 1.4
1.4 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/gemfont.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/gemfont.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/lib/gemfont.h 20 Jun 2006 18:17:38 -0000 1.3
+++ src/lib/gemfont.h 27 Mar 2010 04:23:08 -0000 1.4
@@ -41,8 +41,9 @@
WORD frm_hgt; /* Pixel height of bitmap. */
struct font_hdr *nxt_fnt; /* Set to 0 */
WORD xOff; /* X offset to add. */
WORD yOff; /* Y offset to add. */
+WORD lineHeight; /* Distance to next line. */
};
#define STPROP 0
#define MFIXED 1
@@ -54,8 +55,11 @@
/* How tall is font? */
int font_cel_height(struct font_hdr *f);
+/* How far to next line. */
+int font_line_height(struct font_hdr *f);
+
/* How wide would this bunch of characters be? */
long fnstring_width(struct font_hdr *f, unsigned char *s, int n);
/* How wide is widest char in font? */