src/lib/font/mgHelvetica8.c 1.1
1.1 2010/03/27 04:23:12 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/mgHelvetica8.c
===================================================================
RCS file: src/lib/font/mgHelvetica8.c
diff -N src/lib/font/mgHelvetica8.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/lib/font/mgHelvetica8.c 27 Mar 2010 04:23:12 -0000 1.1
@@ -0,0 +1,278 @@
+
+/* Helvetica8.c - compiled data for font AdobeHelv-M-R-N--8-80-75-75-P-4 */
+static char const rcsid[] = "$Id$";
+/* generated source code by utils/bdfToGem, do not edit */
+/* BDF data file input: 75dpi/helvR08.bdf */
+
+#include "common.h"
+#include "memgfx.h"
+#include "../gemfont.h"
+
+static UBYTE Helvetica8_data[2211] = {
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,
+0x10,0x10,0x82,0x80,0x20,0,0x2,0x4,0x20,0x11,
+0x40,0x1,0x48,0x8,0x41,0x40,0,0x4,0x4,0x20,
+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,0,0,0,0,
+0,0,0,0,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,0x8,
+0,0,0,0,0,0,0,0,0,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219,225,231,
+237,243,249,253,259,265,273,279,285,291,
+294,296,298,303,308,311,316,321,325,330,
+334,338,343,348,350,352,356,358,364,369,
+374,379,384,388,392,396,400,405,411,416,
+421,425,428,430,433,439,441,443,445,447,
+449,451,453,455,457,459,461,463,465,467,
+469,471,473,475,477,479,481,483,485,487,
+489,491,493,495,497,499,501,503,505,507,
+509,514,519,524,530,532,537,541,548,551,
+556,562,565,572,575,579,584,587,590,592,
+596,601,603,605,607,610,615,622,629,636,
+641,647,653,659,665,671,677,685,691,697,
+703,709,715,717,720,723,726,732,738,744,
+750,756,762,768,773,779,785,791,797,803,
+809,815,821,826,831,836,841,846,851,857,
+861,865,869,873,877,879,882,885,888,893,
+898,903,908,913,918,923,928,935,939,943,
+947,951,956,961,966,
+};
+
+static struct font_hdr Helvetica8_font = {
+STPROP, 8, "AdobeHelv-M-R-N--8-80-75-75-P-4", 32, 255,
+11, 9, 5, 2, 2,
+9, 9, 0, 0,
+0, 0, 0x5555, (WORD)0xaaaa,
+0x0, NULL,
+Helvetica8_ch_ofst, Helvetica8_data,
+201, 11,
+NULL,
+0, 0, /* x/y offset */
+11, /* lineHeight */
+};
+
+MgFont *mgHelvetica8Font()
+{
+return &Helvetica8_font;
+}