tech-userlevel@netbsd.org
[Top] [All Lists]

Re: UTF8 (Was: [PATCH] replace 0xA0 to whitespace in plain text files (

Subject: Re: UTF8 Was: [PATCH] replace 0xA0 to whitespace in plain text files (part 2)
From: der Mouse
Date: Fri, 12 Sep 2008 11:53:28 -0400 EDT
> ... which in turn brings up the question of adding UTF-8 support in
> wscons, creating/finding UTF-8 console fonts, etc.

There really is no such thing as a UTF-8 font.  Fonts are mappings
between codepoints and glyphs, not between encodings and glyphs.
(Actually, strictly, they _are_ mappings between encodings and glyphs,
but all existing font machinery uses simple integer encodings, with no
way to even represent variable-length encodings such as UTF-8.  Well,
as far as I know, at least - I'd be very interested to hear of any
exceptions.)

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse@xxxxxxxxxxxxxxxxxxxx
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

<Prev in Thread] Current Thread [Next in Thread>