FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-05-2008, 07:21 PM
Amit Uttamchandani
 
Default Issues with PCF and BDF Fonts after regular lenny updates

I do my usual Lenny/Testing updates every couple of days and this time
however, my terminal and X fonts are messed up.

The curios thing is that it is only PCF or BDF fonts. TrueType fonts
display correctly.

For example, I use slim X11 session manager and this specific theme
uses snap.pcf (from artwiz). It can't seem to find snap.pcf and thus
defaults to Bitstream or some other font.

Same issue with urxvt. I use Dina.bdf for that and now it displays a
super large font. If I change urxvt to use Liberation Sans or Courier,
everything works as expected.

After looking at logs, I figured the only cause was my last set of
updates included updates to fontconfig. I searched bug reports but to
no avail.

I am not too familiar with fonts on linux systems so any help would be
appreciated. Maybe I just need to rebuild the font caches? How do I do
that?

Also, I don't use GNOME or KDE so CLI method is preferable.

Thanks,
Amit


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-06-2008, 06:50 AM
Osamu Aoki
 
Default Issues with PCF and BDF Fonts after regular lenny updates

Hi,

On Fri, Dec 05, 2008 at 12:21:39PM -0800, Amit Uttamchandani wrote:
>
> I do my usual Lenny/Testing updates every couple of days and this time
> however, my terminal and X fonts are messed up.
>
> The curios thing is that it is only PCF or BDF fonts. TrueType fonts
> display correctly.
>
> For example, I use slim X11 session manager and this specific theme
> uses snap.pcf (from artwiz). It can't seem to find snap.pcf and thus
> defaults to Bitstream or some other font.
>
> Same issue with urxvt. I use Dina.bdf for that and now it displays a
> super large font. If I change urxvt to use Liberation Sans or Courier,
> everything works as expected.
>
> After looking at logs, I figured the only cause was my last set of
> updates included updates to fontconfig. I searched bug reports but to
> no avail.
>
> I am not too familiar with fonts on linux systems so any help would be
> appreciated. Maybe I just need to rebuild the font caches? How do I do
> that?
>
> Also, I don't use GNOME or KDE so CLI method is preferable.

Now default font set are picked via fontconfig thing.

http://people.debian.org/~osamu/pub/getwiki/html/ch08.en.html#fontsinthexwindow


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-07-2008, 02:24 AM
Amit Uttamchandani
 
Default Issues with PCF and BDF Fonts after regular lenny updates

On Sat, 6 Dec 2008 16:50:02 +0900
Osamu Aoki <osamu@debian.org> wrote:

> Now default font set are picked via fontconfig thing.
>
> http://people.debian.org/~osamu/pub/getwiki/html/ch08.en.html#fontsinthexwindow
>

Thanks for the reply.

Your document definitely helped a lot in understanding fonts in debain.
So now I tried configuring my fonts using fontconfig, which I assume
means configuration through fonts.conf. So I have the following
~/.fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<dir>/home/amitu/.fonts</dir>
</fontconfig>

But urxvt still can't seem to use the Dina font which is located in
~/.fonts.

Any ideas?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-07-2008, 12:22 PM
Florian Kulzer
 
Default Issues with PCF and BDF Fonts after regular lenny updates

On Sat, Dec 06, 2008 at 19:24:52 -0800, Amit Uttamchandani wrote:
> On Sat, 6 Dec 2008 16:50:02 +0900 Osamu Aoki wrote:
>
> > Now default font set are picked via fontconfig thing.
> >
> > http://people.debian.org/~osamu/pub/getwiki/html/ch08.en.html#fontsinthexwindow
> >
>
> Thanks for the reply.
>
> Your document definitely helped a lot in understanding fonts in debain.
> So now I tried configuring my fonts using fontconfig, which I assume
> means configuration through fonts.conf. So I have the following
> ~/.fonts.conf:
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <!-- /etc/fonts/fonts.conf file to configure system font access -->
> <fontconfig>
> <dir>/home/amitu/.fonts</dir>
> </fontconfig>
>
> But urxvt still can't seem to use the Dina font which is located in
> ~/.fonts.
>
> Any ideas?

It should not be necessary to refer to ~/.fonts explicitly in
~/.fonts.conf. This directory is included in the font path by default.
(You can check this with "xset q"; /home/$USER/.fonts should be listed
at the end of the font path.)

All that you should have to do is copy the fonts to ~/.fonts and run
"mkfontdir ~/.fonts". I do not know where to find the Dina font, but I
tested this with the snap font that you mentioned in your earlier mail:

$ fc-match snap
snap.pcf.gz: "snap" "Regular"

If this does not work then you have to check if bitmap fonts are enabled
on your system. Run "dpkg-reconfigure fontconfig-config" and make sure
that you answer "Yes" to the third question. You need to restart X to
see the effect of changes in the fontconfig settings.

If you do not want to enable all bitmap fonts then you can selectively
enable certain families in your ~/fonts.conf, for example:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>snap</string></patelt>
</pattern>
</acceptfont>
</selectfont>
</fontconfig>

The effect of this configuration is instantaneous on my system (no need
to restart X) and the snap fonts is found by fc-match even if bitmap
fonts are disabled globally.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-08-2008, 02:14 AM
Amit Uttamchandani
 
Default Issues with PCF and BDF Fonts after regular lenny updates

>
> It should not be necessary to refer to ~/.fonts explicitly in
> ~/.fonts.conf. This directory is included in the font path by default.
> (You can check this with "xset q"; /home/$USER/.fonts should be listed
> at the end of the font path.)
>

Ok, there's the first problem. When I do xset q /home/$USER/.fonts is
not listed:

Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,/usr/share/fonts/artwiz,/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType


> All that you should have to do is copy the fonts to ~/.fonts and run
> "mkfontdir ~/.fonts". I do not know where to find the Dina font, but I
> tested this with the snap font that you mentioned in your earlier mail:
>
> $ fc-match snap
> snap.pcf.gz: "snap" "Regular"
>

The above did not work initially, so I reinstalled using aptitude
'fontconfig' and 'fontconfig-config', now the above works.

> If this does not work then you have to check if bitmap fonts are enabled
> on your system. Run "dpkg-reconfigure fontconfig-config" and make sure
> that you answer "Yes" to the third question. You need to restart X to
> see the effect of changes in the fontconfig settings.
>

I tried this but no luck with the Dina font.

$ fc-match Dina
Vera.ttf: "Bitstream Vera Sans" "Roman"

$ ls -al ~/.fonts

-rw-r--r-- 1 amitu amitu 38603 Jul 13 19:28 Dina_i400-10.bdf
-rw-r--r-- 1 amitu amitu 36296 Jul 13 19:28 Dina_i400-8.bdf
-rw-r--r-- 1 amitu amitu 37832 Jul 13 19:29 Dina_i400-9.bdf
-rw-r--r-- 1 amitu amitu 38599 Jul 13 19:29 Dina_i700-10.bdf
-rw-r--r-- 1 amitu amitu 36292 Jul 13 19:29 Dina_i700-8.bdf
-rw-r--r-- 1 amitu amitu 37828 Jul 13 19:29 Dina_i700-9.bdf
-rw-r--r-- 1 amitu amitu 38603 Jul 13 19:29 Dina_r400-10.bdf
-rw-r--r-- 1 amitu amitu 36296 Jul 13 19:29 Dina_r400-8.bdf
-rw-r--r-- 1 amitu amitu 37832 Jul 13 19:29 Dina_r400-9.bdf
-rw-r--r-- 1 amitu amitu 38599 Jul 13 19:29 Dina_r700-10.bdf
-rw-r--r-- 1 amitu amitu 36292 Jul 13 19:29 Dina_r700-8.bdf
-rw-r--r-- 1 amitu amitu 37828 Jul 13 19:29 Dina_r700-9.bdf

Again, I guess I'm not sure why xset q doesn't list my fonts dir.

> Regards, | http://users.icfo.es/Florian.Kulzer
> Florian |
>
>

Thank you for helping.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-08-2008, 09:36 PM
Florian Kulzer
 
Default Issues with PCF and BDF Fonts after regular lenny updates

On Sun, Dec 07, 2008 at 19:14:34 -0800, Amit Uttamchandani wrote:

[...]

> Ok, there's the first problem. When I do xset q /home/$USER/.fonts is
> not listed:
>
> Font Path:
> /usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,/usr/share/fonts/artwiz,/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType

I realized that on my system it is actually KDE that adds ~/.fonts to
the font path when I log in. So it seems normal that it is missing from
your font path since you do not use KDE. If you want, you can add

xset fp+ ~/.fonts

somewhere in startup/login scripts. However, as far as fontconfig is
concerned, the most important things seems to be that you have this

<dir>~/.fonts</dir>

in /etc/fonts/fonts.conf.

[...]

> > $ fc-match snap
> > snap.pcf.gz: "snap" "Regular"
> >
>
> The above did not work initially, so I reinstalled using aptitude
> 'fontconfig' and 'fontconfig-config', now the above works.

[...]

> I tried this but no luck with the Dina font.
>
> $ fc-match Dina
> Vera.ttf: "Bitstream Vera Sans" "Roman"

Do you get any output from:

grep -i dina ~/.fonts/fonts.*

Can I download the Dina font from somewhere to experiment myself?

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-25-2008, 05:50 AM
Amit Uttamchandani
 
Default Issues with PCF and BDF Fonts after regular lenny updates

On Mon, 8 Dec 2008 23:36:39 +0100
Florian Kulzer <florian.kulzer+debian@icfo.es> wrote:

I apologize I did not follow with this for a while. I just got done
finals....

>
> I realized that on my system it is actually KDE that adds ~/.fonts to
> the font path when I log in. So it seems normal that it is missing from
> your font path since you do not use KDE. If you want, you can add
>
> xset fp+ ~/.fonts
>

I tried this but doesn't seem to make a difference.

>
> > I tried this but no luck with the Dina font.
> >
> > $ fc-match Dina
> > Vera.ttf: "Bitstream Vera Sans" "Roman"
>
> Do you get any output from:
>
> grep -i dina ~/.fonts/fonts.*
>
amitu@debian:~$ grep -i dina /home/amitu/.fonts/fonts.*
/home/amitu/.fonts/fonts.dirina_i400-10.bdf
-windows-dina-medium-i-normal--16-100-96-96-c-80-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_i400-8.bdf
-windows-dina-medium-i-normal--13-80-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_i400-9.bdf
-windows-dina-medium-i-normal--15-90-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_i700-10.bdf
-windows-dina-bold-i-normal--16-100-96-96-c-80-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_i700-8.bdf
-windows-dina-bold-i-normal--13-80-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_i700-9.bdf
-windows-dina-bold-i-normal--15-90-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r400-10.bdf
-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r400-8.bdf
-windows-dina-medium-r-normal--13-80-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r400-9.bdf
-windows-dina-medium-r-normal--15-90-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r700-10.bdf
-windows-dina-bold-r-normal--16-100-96-96-c-80-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r700-8.bdf
-windows-dina-bold-r-normal--13-80-96-96-c-70-microsoft-cp1252 /home/amitu/.fonts/fonts.dirina_r700-9.bdf
-windows-dina-bold-r-normal--15-90-96-96-c-70-microsoft-cp1252
amitu@debian:~$

> Can I download the Dina font from somewhere to experiment myself?
>

I got it from here...

http://aur.archlinux.org/packages.php?ID=14630


However, I got it solved by doing the following in my ~/.fonts dir:

$ mkfontdir; mkfontscale

Any ideas to why this worked?

Thanks,
Amit


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 12:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org