19 * make sure data is word-aligned. this is true with Plan 9 compilers
20 * but not in general. the byte order is right because the data is
21 * declared as char*, not ulong*.
23 p = (char*)defontdata;
26 memmove(p+(4-n), p, sizeofdefont-n);
30 r.min.x = atoi(p+1*12);
31 r.min.y = atoi(p+2*12);
32 r.max.x = atoi(p+3*12);
33 r.max.y = atoi(p+4*12);
35 md = mallocz(sizeof(Memdata), 1);
41 md->base = nil; /* so freememimage doesn't free p */
42 md->bdata = (uchar*)p; /* ick */
44 md->allocd = 1; /* so freememimage does free md */
46 i = allocmemimaged(r, drawld2chan[ld], md);
52 hdr = p+Dy(r)*i->width*sizeof(ulong);
55 fc = malloc(sizeof(Fontchar)*(n+1));
60 _unpackinfo(fc, (uchar*)p, n);
61 f = allocmemsubfont("*default*", n, atoi(hdr+12), atoi(hdr+24), fc, i);