Re: Switching to my chosen console font when the framebuffer console starts.
[email protected] Tue, 23 Oct 2007 21:57:22 +0200
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <[email protected]> |
From: cga2000 <[email protected]> Date: Mon, Oct 22, 2007 at 06:30:30PM -0400 > On Mon, Oct 22, 2007 at 03:20:54PM EDT, [email protected] wrote: > > From: cga2000 <[email protected]> > > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/