summaryrefslogtreecommitdiff
path: root/Hurd
diff options
context:
space:
mode:
authorPatrick Strasser <patrick.strasser@tugraz.at>2004-09-07 10:34:07 +0000
committerPatrick Strasser <patrick.strasser@tugraz.at>2004-09-07 10:34:07 +0000
commit65fa4a79d451bd57044c07da1612a91c8b836a01 (patch)
treefaca43b1127be6b5164a894d18cf8a4820b227f7 /Hurd
parent0a0ab750b95c44622d24816b483bb3142ffcfdff (diff)
none
Diffstat (limited to 'Hurd')
-rw-r--r--Hurd/HurdConsole.mdwn10
1 files changed, 7 insertions, 3 deletions
diff --git a/Hurd/HurdConsole.mdwn b/Hurd/HurdConsole.mdwn
index e74bb72e..4eec9cc9 100644
--- a/Hurd/HurdConsole.mdwn
+++ b/Hurd/HurdConsole.mdwn
@@ -119,7 +119,11 @@ This is because by default, the vga driver just reads the VGA card memory and ta
But you want it all. You want to read Middle Old English. You want to read Thai. Your Korean spam. Georgian script. Hebrew. And you can have it.
-You need a Unicode font. There are good ones provided by Markus Kuhn, [the UCS fonts](http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz). See also [the web page](http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html).
+First you have to set the encoding to UTF-8:
+
+ # settrans -fg /dev/vcs /hurd/console --encoding=UTF-8
+
+Then you need a Unicode font. There are good ones provided by Markus Kuhn, [the UCS fonts](http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz). See also [the web page](http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html).
Now, load the font by providing it with the `--font` option to the vga driver. I suggest only the 8x13 and the 9x15 fonts, but feel free to try others, too. Note that the VGA text mode can not really display 9 pixel wide characters. But as most characters have the ninth column empty, and the VGA text mode can display an empty column between two adjacent character cells, this trick allows us to display most of the 9x15 font correctly. So you won't notice a difference until you come to very broad characters or special symbols, where you will see that the last column is cut off. (BTW, I wrote the dynafont code carefully to still support horizontal line graphic characters properly in 9 pixel wide fonts. This is done by exploiting some special modes in the VGA hardware. This is why in 512 (256) glyph mode and 9 pixel wide fonts, you are limited to 448 (224) normal characters: 64 (32) slots are reserved for the horizontal line graphic characters so they are drawn continuously.)
@@ -139,11 +143,11 @@ While we are talking about fonts, try also the 8x13O font with `--font-italic` a
To activate those fonts on your virtual console, try the following:
- # echo `tput sitm`Hello slanted world.`tput ritm`
+ # echo `tput sitm` Hello slanted world. `tput ritm`
and
- # echo `tput gsbom`Hello bold world.`tput grbom`
+ # echo `tput gsbom` Hello bold world. `tput grbom`
I hope you like what you see. Imagine this in emacs font-lock mode.