Skip to contentSkip to conversation

ISO-8859-1 completeness of kernel fonts?

DISCUSSION Mack Stevenson 4 participants 4 messages Feb 27, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

Thank you for your reply.

Quoted 6 lines
Quoted 3 lines

The 8x16 and Sun 12x22 kernel fonts I tried seem to lack some standard glyphs necessary to represent the entire ISO-8859-1 charmap; I am

talking

Quoted 2 lines

about all accented capital vowels except for '�'.

Quoted 9 lines
Quoted 6 lines

This seems to happen in both 2.2.16 as well as in 2.2.18.

Is this intentional? If so, why?

How can I override this behaviour?

They're probably CP 437 fonts. Just load your own; e.g. "setfont lat1u-16".

I know that, but unfortunately all the fonts I found for use with the kbd and console-tools packages are much smaller than 12x22, making them hardly legible (to me) on high dpi screens: that's why I even tried the ones in the kernel. :-)

[Is there any easy way for you to create larger console fonts out of the 8x16 Latin* ones you already wrote?]

"setfont -h22 [font]" doesn't work, too.

Anyway, I have already pinned down the source file (in 2.2.18) - drivers/video/font_sun12x22.c - and would like to try to change this. Yet it seems like the kernel boots using the CP437 charmap, so this would need to be modified, too - I suppose that the relevant file is drivers/char/consolemap.c.

- How can I instruct the kernel to use the ISO-8859-1 character map? drivers/char/consolemap.c contains three different translation tables - CP437, ISO-8859-1 and VT100 mapped to Unicode -; how can I choose one of them?

- Or shouldn't I even bother about this since in the ASCII range CP437 and ISO-8859-1 map to the same characters? May I just boot the kernel using an unmatched pair of (CP437) charmap and (ISO-8859-1) font, feeling at ease because the kernel won't try to print any non-ASCII characters, and only later, in userspace, call loadunimap?

Am I understanding this correctly?

Thank you,

Mack
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#1 lore raw
Quoted 12 lines · Mack Stevenson

Anyway, I have already pinned down the source file (in 2.2.18) - drivers/video/font_sun12x22.c - and would like to try to change this. Yet it seems like the kernel boots using the CP437 charmap, so this would need to be modified, too - I suppose that the relevant file is drivers/char/consolemap.c.

- How can I instruct the kernel to use the ISO-8859-1 character map? drivers/char/consolemap.c contains three different translation tables - CP437, ISO-8859-1 and VT100 mapped to Unicode -; how can I choose one of them?

Quoted 8 lines

- Or shouldn't I even bother about this since in the ASCII range CP437 and ISO-8859-1 map to the same characters? May I just boot the kernel using an unmatched pair of (CP437) charmap and (ISO-8859-1) font, feeling at ease because the kernel won't try to print any non-ASCII characters, and only later, in userspace, call loadunimap?

Am I understanding this correctly?

Not really.

You're much better off designing a larger ISO-8859-1 font and load in in user space. You can use the 12x22 font in the kernel as a base.

-hpa

Signature · 3 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
#2 lore raw
In reply to Mack Stevenson
Quoted 2 lines · H. Peter Anvin

You're much better off designing a larger ISO-8859-1 font and load in in user space. You can use the 12x22 font in the kernel as a base.

kbd-1.05 comes with sun12x22.psfu, which essentially is the kernel font together with a unimap.

Andries

#3 lore raw
In reply to Mack Stevenson
Quoted 7 lines · Guest section DW
Quoted 2 lines · H. Peter Anvin

You're much better off designing a larger ISO-8859-1 font and load in in user space. You can use the 12x22 font in the kernel as a base.

kbd-1.05 comes with sun12x22.psfu, which essentially is the kernel font together with a unimap.

Note, that I also have a SuSE12x22 font, which is based on the Sun font, some charcaters slightly changed and added lots of 8859-1 symbols. Isn't it included in kbd-1.04 and later, Andries?

I also have a patch to make it available for the kernel ...
http://www.garloff.de/kurt/linux/

Regards,

Signature · 4 lines
Kurt Garloff                   <[email protected]>         [Eindhoven, NL]
Physics: Plasma simulations  <[email protected]>  [TU Eindhoven, NL]
Linux: SCSI, Security          <[email protected]>   [SuSE Nuernberg, FRG]
 (See mail header or public key servers for PGP2 and GPG public keys.)