From: <thu...@xs...> - 2007-10-23 20:06:43
|
From: cga2000 <cg...@op...> Date: Mon, Oct 22, 2007 at 06:30:30PM -0400 > On Mon, Oct 22, 2007 at 03:20:54PM EDT, thu...@xs... wrote: > > From: cga2000 <cg...@op...> > > Date: Sun, Oct 21, 2007 at 08:44:29PM -0400 > > > It looks like I need to: > > > > > > 1. convert the .psf font to a text format (fontforge?) > > > > This is, IMHO, the most difficult step. > > I remember peeking into font files that looked exactly like the stuff in > those font*.c files but I can't remember where. > > Surely this particular encoding must correspond to a specific dot > something format? > > That's why I mentioned "fontforge" hoping there had to be some tool that > lets you convert from the .psf format to this other format painlessly. > > If not, then it _is_ going to be difficult .. from font_6x11.c: #include <linux/font.h> #define FONTDATAMAX (11*256) static const unsigned char fontdata_6x11[FONTDATAMAX] = { <snip> /* 35 0x23 '#' */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0x28, /* 00 0 000 */ 0x7c, /* 0 00 */ 0x28, /* 00 0 000 */ 0x28, /* 00 0 000 */ 0x7c, /* 0 00 */ 0x28, /* 00 0 000 */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ There is no real format, it's just an array full of bits on or off. > For just this one font I'm not sure a tool that automates the process > is worth the effort. > It might be worth it if it can translate from whatever text output you're starting from to the hexadecimal values you need. I remember I wrote the comments by hand, then translated that to the hex values I needed in awk. Good luck, Jurriaan |