Re: font fix found, but how to make it stick?
On Tue, Sep 02, 2003 at 02:47:28PM +1000, Russell Shaw wrote: [EMAIL PROTECTED] wrote: Hmmm... While I was considering editing the binary font file (helvB12.pcf.gz), I noticed a different font file in the same location: /usr/X11R6/lib/X11/fonts/75dpi/helvB12-ISO8859-1.pcf.gz After some inspection, it would seem that many fonts default to iso10646, but also are available in a iso8859 versions. What is the Debian way to give preference to the iso8859 versions? I found that simply deleting the iso10646 version (helvB12.pcf.gz) and then doing a update-fonts-dir does work. BUT -- I think as soon as package xfonts-75dpi is upgraded, it will undo the fix... If i run xfontsel, i can pick fmly=helvetica, and rgstry=iso10646. Can you? With the font file deleted as described above, no... Does that break a lot of apps? I wish I could leave those fonts on the system and get iso8859-1 to be used when fonts ending in -*-* are requested. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: font fix found, but how to make it stick?
I found this to be quite informative: http://lists.debian.org/debian-devel/2001/debian-devel-200109/msg01570.html My best fix so far has been to wipe any ISO10646 font files that also come in an ISO8859 version by doing this: # delete the files listed here... find /usr/X11R6/lib/X11/fonts \ | grep ISO8859-1 | egrep '/misc|(75|100)dpi/' \ | sed -e 's/-ISO8859-1//' | while read f; do [ ! -f $f ] continue zcat $f | grep -q ISO10646 echo $f done # refresh... for fdir in misc 75dpi 100dpi ; do update-fonts-dir $fdir done It fixes my app. I have not found any broken apps yet... - Tor On Tue, Sep 02, 2003 at 04:51:15PM -, [EMAIL PROTECTED] wrote: I think I have a related problem. Invoking acroread on my (woody) laptop, I get an error message Warning: charset of fontList (ISO10646-1) does not match locale (ISO8859-1). Acroread displays little dotted boxes instead of characters in its menu bar. But if I use ssh -X to log into the laptop from my (woody) desktop, the laptop is able to correctly run acroread on the desktop's display. Interestingly, /etc/locale.gen on the desktop (acroread OK) is empty except for comments. /etc/locale.gen on the laptop (acroread broken) contains two lines: en_US ISO-8859-1 en_US.UTF-8 UTF-8 So it appears locales is not compatible with acroread for some reason. Can I safely remove and purge locales? Will it make any difference? Is fontList documented somewhere? Google shows http://lists.debian.org/debian-user/2002/debian-user-200203/msg01994.html same question, went unanswered. I went upstream and got http://download.adobe.com/ pub/adobe/acrobatreader/unix/5.x/linux-507.tar.gz and it's got the same problem. TIA Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: font fix found, but how to make it stick?
[EMAIL PROTECTED] wrote: Hmmm... While I was considering editing the binary font file (helvB12.pcf.gz), I noticed a different font file in the same location: /usr/X11R6/lib/X11/fonts/75dpi/helvB12-ISO8859-1.pcf.gz After some inspection, it would seem that many fonts default to iso10646, but also are available in a iso8859 versions. What is the Debian way to give preference to the iso8859 versions? I found that simply deleting the iso10646 version (helvB12.pcf.gz) and then doing a update-fonts-dir does work. BUT -- I think as soon as package xfonts-75dpi is upgraded, it will undo the fix... If i run xfontsel, i can pick fmly=helvetica, and rgstry=iso10646. Can you? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: font fix found, but how to make it stick?
I think I have a related problem. Invoking acroread on my (woody) laptop, I get an error message Warning: charset of fontList (ISO10646-1) does not match locale (ISO8859-1). Acroread displays little dotted boxes instead of characters in its menu bar. But if I use ssh -X to log into the laptop from my (woody) desktop, the laptop is able to correctly run acroread on the desktop's display. Interestingly, /etc/locale.gen on the desktop (acroread OK) is empty except for comments. /etc/locale.gen on the laptop (acroread broken) contains two lines: en_US ISO-8859-1 en_US.UTF-8 UTF-8 So it appears locales is not compatible with acroread for some reason. Can I safely remove and purge locales? Will it make any difference? Is fontList documented somewhere? Google shows http://lists.debian.org/debian-user/2002/debian-user-200203/msg01994.html same question, went unanswered. I went upstream and got http://download.adobe.com/ pub/adobe/acrobatreader/unix/5.x/linux-507.tar.gz and it's got the same problem. TIA Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: font fix found, but how to make it stick?
[EMAIL PROTECTED] wrote: Hi to all, I have an old X client that requests this font: -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-* ( /usr/X11R6/lib/X11/fonts/75dpi/helvB12.pcf.gz ) Unfortunately, iso10646 encoding causes this client to show only boxes. I've found that I can fix it by manually editing /usr/lib/X11/fonts/75dpi/fonts.dir like so: helvB12.pcf.gz -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso10646-1 --- helvB12.pcf.gz -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 ... changing the encoding to iso8859 for the font in question. My problem is that 'update-fonts-dir' completely un-does my edit! There's probably a defoma tweak that I need to make, but I can't figure it out. Is there a global setting to always prefer iso8859 for all fonts when possible? Any help is be greatly appreciated! Change the name of the font in the font files. update-fonts-dir will regenerate fonts.dir from that info. man update-fonts-dir http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.8.5 The kernel has language settings you can select for things like 8859 etc. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: font fix found, but how to make it stick?
Hmmm... While I was considering editing the binary font file (helvB12.pcf.gz), I noticed a different font file in the same location: /usr/X11R6/lib/X11/fonts/75dpi/helvB12-ISO8859-1.pcf.gz After some inspection, it would seem that many fonts default to iso10646, but also are available in a iso8859 versions. What is the Debian way to give preference to the iso8859 versions? I found that simply deleting the iso10646 version (helvB12.pcf.gz) and then doing a update-fonts-dir does work. BUT -- I think as soon as package xfonts-75dpi is upgraded, it will undo the fix... - Tor On Mon, Sep 01, 2003 at 09:37:32PM +1000, Russell Shaw wrote: [EMAIL PROTECTED] wrote: Hi to all, I have an old X client that requests this font: -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-* ( /usr/X11R6/lib/X11/fonts/75dpi/helvB12.pcf.gz ) Unfortunately, iso10646 encoding causes this client to show only boxes. I've found that I can fix it by manually editing /usr/lib/X11/fonts/75dpi/fonts.dir like so: helvB12.pcf.gz -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso10646-1 --- helvB12.pcf.gz -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 ... changing the encoding to iso8859 for the font in question. My problem is that 'update-fonts-dir' completely un-does my edit! There's probably a defoma tweak that I need to make, but I can't figure it out. Is there a global setting to always prefer iso8859 for all fonts when possible? Any help is be greatly appreciated! Change the name of the font in the font files. update-fonts-dir will regenerate fonts.dir from that info. man update-fonts-dir http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.8.5 The kernel has language settings you can select for things like 8859 etc. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]