src/lib/font/mgTimes8.c 1.1
1.1 2010/03/27 04:23:15 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/font/mgTimes8.c
===================================================================
RCS file: src/lib/font/mgTimes8.c
diff -N src/lib/font/mgTimes8.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/lib/font/mgTimes8.c 27 Mar 2010 04:23:15 -0000 1.1
@@ -0,0 +1,256 @@
+
+/* Times8.c - compiled data for font -Adobe-Times-M-R-N--8-80-75-75- */
+static char const rcsid[] = "$Id$";
+/* generated source code by utils/bdfToGem, do not edit */
+/* BDF data file input: 75dpi/timR08.bdf */
+
+#include "common.h"
+#include "memgfx.h"
+#include "../gemfont.h"
+
+static UBYTE Times8_data[2000] = {
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0x80,0x84,0x14,0x1,0,0,
+0x81,0x10,0x10,0xa0,0x1,0x48,0x8,0x41,0x40,0,
+0x2,0x2,0x10,0x1,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0x8,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,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,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 Times8_ch_ofst[225] = {
+0,2,4,7,11,15,21,27,29,32,
+35,39,44,47,50,52,55,59,63,67,
+71,75,79,83,87,91,95,97,100,104,
+109,113,116,123,129,134,140,146,151,156,
+162,168,171,174,180,185,193,199,205,210,
+216,222,227,232,238,244,252,258,264,269,
+271,274,276,280,284,287,290,294,298,302,
+306,309,313,317,319,321,325,328,334,338,
+342,346,350,353,356,359,363,367,373,378,
+382,386,389,391,394,400,402,404,406,408,
+410,412,414,416,418,420,422,424,426,428,
+430,432,434,436,438,440,442,444,446,448,
+450,452,454,456,458,460,462,464,466,468,
+470,474,478,482,488,490,494,499,506,509,
+513,519,522,529,532,535,540,542,544,546,
+550,555,557,560,563,566,570,576,582,588,
+591,597,603,609,615,621,627,633,639,644,
+649,654,659,662,665,668,671,677,683,689,
+695,701,707,713,718,724,730,736,742,748,
+754,759,763,766,769,772,776,779,782,788,
+792,796,800,804,808,810,812,814,816,820,
+824,828,832,836,840,844,848,852,856,860,
+864,868,872,876,880,
+};
+
+static struct font_hdr Times8_font = {
+STPROP, 8, "-Adobe-Times-M-R-N--8-80-75-75-", 32, 255,
+10, 8, 5, 2, 2,
+9, 8, 0, 0,
+0, 0, 0x5555, (WORD)0xaaaa,
+0x0, NULL,
+Times8_ch_ofst, Times8_data,
+200, 10,
+NULL,
+0, 0, /* x/y offset */
+10, /* lineHeight */
+};
+
+MgFont *mgTimes8Font()
+{
+return &Times8_font;
+}