17 * make sure data is word-aligned. this is true with Plan 9 compilers
18 * but not in general. the byte order is right because the data is
19 * declared as char*, not ulong*.
21 p = (char*)defontdata;
22 n = (int)(uvlong)p & 3; /* stupid ape */
24 memmove(p+(4-n), p, sizeofdefont-n);
28 r.min.x = atoi(p+1*12);
29 r.min.y = atoi(p+2*12);
30 r.max.x = atoi(p+3*12);
31 r.max.y = atoi(p+4*12);
33 i = allocimage(d, r, drawld2chan[ld], 0, 0);
38 n = loadimage(i, r, (uchar*)p, (defontdata+sizeofdefont)-(uchar*)p);
47 fc = malloc(sizeof(Fontchar)*(n+1));
52 _unpackinfo(fc, (uchar*)p, n);
53 f = allocsubfont("*default*", n, atoi(hdr+12), atoi(hdr+24), fc, i);