On Sun, May 19, 2002 at 05:59:46PM +1000, Drew Parsons wrote: > On Fri, May 17, 2002 at 01:04:18PM +0200, Matijs van Zuijlen wrote: > > > > Now, however, I've found a page that is encoded in UTF-8 and has the > > same problem: The unicode character 2019, which is the single end quote > > _in the standard_, is shown as the dotted-y. > > > > If I set 'use own fonts' (I use Galeon 1.2.0), the character is displayed > > correctly, even if the 'own font' I use is the same as the one requested > > by the page. Also, explicitely setting the encoding to UTF-8 doesn't > > help. > > > > Any suggestions? Anyone else seeing the same? > > > > I get a similar problem reading russian fonts, regardless of actual encoding > (well, my tests were on KOI8-R). Namely, the letter '??' ('yo') gets > rendered as '£' (english pound), while other letters were rendered > correctly. After tracking the problem a little further, I came to the > conclusion that the problem was actually in the font used, whichever > was the one that mozilla uses by default. It simply renders character > 0xA4 as the russian letter 'yo' when in a KOI8-R character set. 0xA4 is > the english pound symbol in the latin1 charset. > > Maybe Galeon is therefore not actually using the font you thought it was > using, but by default uses one of these broken fonts? I dug through som bug reports, and that is indeed what happens: I thought it would use the iso10646-1 encoding. Then, from http://bugzilla.mozilla.org/show_bug.cgi?id=117644, I learned that galeon and mozilla use a font with encoding iso8859-13 to display 0x2019, because iso8859-13 has that character at position 0xff. And indeed, the iso8859-13 encoding of the microsoft core fonts package was broken. I solved it by adding an encodings.dir file to /usr/lib/X11/fonts/TrueType (I just copied it from one of the other font directories). Apparently the font server needs it to get the iso8859-13 encoding right. There's a bug report about this for msttcorefonts as well: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=141571&repeatmerged=yes BTW, you can check which font mozilla uses to display the 'yo' by setting NS_FONT_DEBUG to 5. It works for galeon as well. I will take a look at later on. -- Matijs van Zuijlen ... designed to fill holes or cracks of not more than two cubic vims. -- Robert Sheckley, Untouched by Human Hands
Attachment:
pgpnJpeDqcfpo.pgp
Description: PGP signature