src/lib/font/mgCourier8.c 1.2

1.2 2010/03/31 00:07:44 kent
Adding fixed 34 font. Testing and tweaking for postScript output.
Index: src/lib/font/mgCourier8.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/font/mgCourier8.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/lib/font/mgCourier8.c	27 Mar 2010 04:23:11 -0000	1.1
+++ src/lib/font/mgCourier8.c	31 Mar 2010 00:07:44 -0000	1.2
@@ -1,273 +1,274 @@
 
 /* Courier8.c - compiled data for font -Adobe-Courier-M-R-N--8-80-75-7 */
 static char const rcsid[] = "$Id$";
 /* generated source code by utils/bdfToGem, do not edit */
 /* BDF data file input: 75dpi/courR08.bdf */
 
 #include "common.h"
 #include "memgfx.h"
 #include "../gemfont.h"
 
 static UBYTE Courier8_data[2120] = {
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0x20,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0x4,0x8,0x85,0x1,0,0x4,0x8,0x80,0x40,0x88,
 0,0x15,0x2,0x21,0x40,0,0x20,0x44,0,0x80,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0x2,0,0x4,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0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0,0,0,0,0x43,
 0x79,0x9e,0x23,0x81,0xd5,0x2b,0xc0,0xe8,0x8,0xe2,
 0x8,0x1a,0xd0,0,0x42,0x2b,0xce,0x68,0x45,0x29,
 0x4a,0x52,0xa8,0xa5,0x29,0x4a,0x21,0x8,0x45,0x35,
 0x4a,0x52,0x94,0xc5,0x29,0x4a,0x54,0x9c,0xac,0x63,
 0x18,0xc6,0x36,0x63,0x18,0xc6,0x63,0x18,0xc3,0x70,
 0x84,0x21,0x8,0xe2,0xeb,0x5a,0xd6,0x99,0xa0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0x1,0,0xa1,0x1d,0xa0,0x20,0x4a,0xf8,0x1c,0x2,
 0x28,0x84,0x17,0x84,0xe2,0x28,0xc4,0x22,0,0x22,
 0x69,0xce,0x42,0x98,0xc7,0x38,0x94,0x62,0x34,0xb5,
 0x39,0x4e,0x31,0x15,0x4d,0x21,0x84,0x41,0x4,0,
 0,0x65,0x21,0x4e,0x22,0x94,0x42,0x30,0x9a,0x52,
 0x94,0xa2,0x31,0xa,0x55,0x58,0xa2,0x20,0x82,0x50,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0x44,0x21,0x88,0x2,0x81,0x90,0x50,0x4e,0xe8,
 0,0x47,0x30,0xa,0x51,0,0xe0,0x14,0xa5,0x94,
 0x47,0x39,0xce,0x73,0xbe,0x86,0x31,0x8c,0x21,0x8,
 0x4d,0x2d,0x4a,0x52,0x94,0xc7,0x29,0x4a,0x53,0x14,
 0x96,0x31,0x8c,0x63,0x1e,0x87,0x39,0xce,0x21,0x8,
 0x45,0x29,0x4a,0x52,0x94,0x5,0x29,0x4a,0x52,0x94,
 0xa0,0,0,0,0,0,0,0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0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0x2,0,0x8,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0xc0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0x3,0,0x6,0,0,0,0x38,0x70,
 0,0,0,0x1,0x80,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0xc0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0xc0,0,0,0,0,0,0,
 0,0,0,0,0,0,0x6,0x39,0x80,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 0,0,0,0,0,0,0,0,0,0,
 };
 
 static WORD Courier8_ch_ofst[225] = {
 0,5,10,15,20,25,30,35,41,46,
 51,56,61,66,71,76,81,86,91,96,
 101,106,111,116,121,126,131,136,141,146,
 151,156,161,166,171,176,181,186,191,196,
 201,206,211,216,221,226,231,236,241,246,
 251,256,261,266,271,276,281,286,291,296,
 301,306,311,316,321,327,332,337,342,347,
 352,357,362,367,372,377,382,387,392,397,
 402,407,412,417,422,427,432,437,442,447,
 452,457,462,467,472,477,482,487,492,497,
 502,507,512,517,522,527,532,537,542,547,
 552,557,562,567,572,577,582,587,592,597,
 602,607,612,617,622,627,632,637,642,647,
 652,657,662,667,672,677,682,687,692,697,
 702,707,712,717,722,727,732,737,742,747,
 752,757,762,767,772,777,782,788,793,799,
 804,809,814,819,824,829,834,839,844,849,
 854,859,864,869,874,879,884,889,894,899,
 904,909,914,919,924,929,934,939,944,949,
 954,959,964,969,974,979,984,989,994,999,
 1004,1009,1014,1019,1024,1029,1034,1039,1044,1049,
 1054,1059,1064,1069,1074,1079,1084,1089,1094,1099,
 1104,1109,1114,1119,1124,
 };
 
 static struct font_hdr Courier8_font = {
 STPROP, 8, "-Adobe-Courier-M-R-N--8-80-75-7", 32, 255,
 10, 8, 5, 2, 2,
 7, 6, 0, 0,
 0, 0, 0x5555, (WORD)0xaaaa,
 0x0, NULL,
 Courier8_ch_ofst, Courier8_data,
 212, 10,
 NULL,
 0, 0,   /* x/y offset */
 10,        /* lineHeight */
+8,	   /* psHeight */
 };
 
 MgFont *mgCourier8Font()
 {
 return &Courier8_font;
 }
 
 MgFont *mgTinyFixedFont()
 {
 return &Courier8_font;
 }