RE: Fonts on KDE

2002-11-21 Thread Charlie Reiman


> -Original Message-
> From: Donald R. Spoon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 21, 2002 12:43 PM
> To: debian-kde@lists.debian.org
> Subject: Re: Fonts on KDE
>
>
> Charlie Reiman wrote:
> > I've got Debian sid (2.4.18 kernel) with kde 2.2.2 installed on
> my Omnibook
> > 500. I'm having a hard time getting fonts to behave. Is there a
> decent FAQ
> > covering font installation? I'd really love something with a
> troubleshooting
> > diagram.
> >
> > I have anti-aliasing working. My problem is KDE itself only seems to
> > recognize about 10 fonts in the look & Feel:Fonts panel
> (courier 10 pitch,
> > nimbus, a few others). KDE will render Helvitica but I can't
> select it in
> > the picker. KWord also seems to let me select from about 10
> different fonts.
> >
> > This is a KDE problem since gfontsel seems to recognize over 100 fonts,
> > including my true type fonts, but it has problems with some
> (not all) 2 byte
> > fonts. gfontview seems to render everything as long as I point it at the
> > right directory. Crufty old xfontsel seems to recongnize all my
> fonts and
> > renders them just fine.
> >
> > "xlsfonts | wc -l" gives 5462, so there are plenty of fonts
> installed as far
> > as X is concerned.
> >
> > How do I get KDE to at least recognize my TT fonts?
> >
> > Thanks for any help
> >
> > Charlie.
> >
>
> Charlie,
>
> It just so happens that I have recently did a "fresh" install of Debian
> Woody, then upgraded to "testing" and installed the msttcorefonts
> package AND ran into the same problem as you!  I had a "working" KDE
> system before the re-install, so I had to re-create my previous steps.
>
> As it turned out, all I had to do was modify the /etc/X11/XftConfig file
> and add the new Defoma path names to get access to the TrueType fonts
> from the status you described.  Basically, I had to make the changes
> recommended during the x-ttcidfont package config when it was installed!
>I also had to start (restart?) the xfs server to read in the new /
> modified file.
>
> Here is my /etc/X11/XftConfig file:
>
> # $XFree86: xc/lib/Xft/XftConfig.cpp,v 1.8 2001/11/21 23:41:12
> keithp Exp $
>
> dir "/usr/X11R6/lib/X11/fonts/Type1"
> # dir "/usr/X11R6/lib/X11/fonts/TrueType"
> dir "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
> dir "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
>
> #
> # alias 'fixed' for 'mono'
> #
> match any family == "fixed" edit family =+ "mono";
>
> #
> # Check users config file
> #
> includeif   "~/.xftconfig"
>
> #
> # Alias between XLFD families and font file family name, prefer local
> # fonts
> #
> match any family == "charter"   edit family += "bitstream
> charter";
> match any family == "bitstream charter" edit family =+ "charter";
>
> There is some other stuff that you can do with this file to clean up
> hinting and aliases, that I have not done here.  That is described in
> the /usr/share/doc/anti-aliasing-howto/XftConfig.examples file on your
> computer.  You might be interested in some of that too..
>
> HTH,
> -Don Spoon-

Thanks. That stopped the hurting. I'm still not sure why image fonts
(wingdings, etc) don't render correctly but at least I can stop using
bitstream for everything.




Re: Fonts on KDE

2002-11-21 Thread Donald R. Spoon
Charlie Reiman wrote:
I've got Debian sid (2.4.18 kernel) with kde 2.2.2 installed on my Omnibook
500. I'm having a hard time getting fonts to behave. Is there a decent FAQ
covering font installation? I'd really love something with a troubleshooting
diagram.
I have anti-aliasing working. My problem is KDE itself only seems to
recognize about 10 fonts in the look & Feel:Fonts panel (courier 10 pitch,
nimbus, a few others). KDE will render Helvitica but I can't select it in
the picker. KWord also seems to let me select from about 10 different fonts.
This is a KDE problem since gfontsel seems to recognize over 100 fonts,
including my true type fonts, but it has problems with some (not all) 2 byte
fonts. gfontview seems to render everything as long as I point it at the
right directory. Crufty old xfontsel seems to recongnize all my fonts and
renders them just fine.
"xlsfonts | wc -l" gives 5462, so there are plenty of fonts installed as far
as X is concerned.
How do I get KDE to at least recognize my TT fonts?
Thanks for any help
Charlie.
Charlie,
It just so happens that I have recently did a "fresh" install of Debian 
Woody, then upgraded to "testing" and installed the msttcorefonts 
package AND ran into the same problem as you!  I had a "working" KDE 
system before the re-install, so I had to re-create my previous steps.

As it turned out, all I had to do was modify the /etc/X11/XftConfig file 
and add the new Defoma path names to get access to the TrueType fonts 
from the status you described.  Basically, I had to make the changes 
recommended during the x-ttcidfont package config when it was installed! 
  I also had to start (restart?) the xfs server to read in the new / 
modified file.

Here is my /etc/X11/XftConfig file:
# $XFree86: xc/lib/Xft/XftConfig.cpp,v 1.8 2001/11/21 23:41:12 keithp Exp $
dir "/usr/X11R6/lib/X11/fonts/Type1"
# dir "/usr/X11R6/lib/X11/fonts/TrueType"
dir "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
dir "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
#
# alias 'fixed' for 'mono'
#
match any family == "fixed" edit family =+ "mono";
#
# Check users config file
#
includeif   "~/.xftconfig"
#
# Alias between XLFD families and font file family name, prefer local
# fonts
#
match any family == "charter"   edit family += "bitstream charter";
match any family == "bitstream charter" edit family =+ "charter";
There is some other stuff that you can do with this file to clean up 
hinting and aliases, that I have not done here.  That is described in 
the /usr/share/doc/anti-aliasing-howto/XftConfig.examples file on your 
computer.  You might be interested in some of that too..

HTH,
-Don Spoon-



RE: Fonts on KDE

2002-11-21 Thread Charlie Reiman

> -Original Message-
> From: Laura Rudmin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 21, 2002 10:43 AM
> To: Charlie Reiman
> Subject: Re: Fonts on KDE
>
>
> Charlie Reiman wrote:
>
> >I've got Debian sid (2.4.18 kernel) with kde 2.2.2 installed on
> my Omnibook
> >500. I'm having a hard time getting fonts to behave. Is there a
> decent FAQ
> >covering font installation? I'd really love something with a
> troubleshooting
> >diagram.
> >
>
> You know, I saw a pretty good looking article on Slashdot.org [actually
> elsewhere,
> but covered on slashdot] linked to about font deuglification in Debian
> about a month ago.
>
> Doing an advanced search on Google for "Debian font howto install
> site:slashdot.org",
> I see that the slashdot article was:
> http://slashdot.org/articles/00/02/25/107204.shtml
>
> The original article was not a working link, but going over to debian, I
> see it here:
> http://www.tldp.org/HOWTO/mini/FDU/index.html
>
> Among other things, it told how to use the font hints and all to make
> them actually
> look decent on the screen.
>
> See if this helps.  If it works, leave a "problem solved message" that
> points to the website,
> or tells what you did.
>
> >
> >I have anti-aliasing working. My problem is KDE itself only seems to
> >recognize about 10 fonts in the look & Feel:Fonts panel (courier
> 10 pitch,
> >nimbus, a few others). KDE will render Helvitica but I can't select it in
> >the picker. KWord also seems to let me select from about 10
> different fonts.
> >
> >This is a KDE problem since gfontsel seems to recognize over 100 fonts,
> >including my true type fonts, but it has problems with some (not
> all) 2 byte
> >fonts. gfontview seems to render everything as long as I point it at the
> >right directory. Crufty old xfontsel seems to recongnize all my fonts and
> >renders them just fine.
> >
> >"xlsfonts | wc -l" gives 5462, so there are plenty of fonts
> installed as far
> >as X is concerned.
> >
> >How do I get KDE to at least recognize my TT fonts?
> >
> >Thanks for any help
> >
> >Charlie.


You're thinking of this document:

http://www.tldp.org/HOWTO/mini/FDU/

which covers how to get TT fonts installed and anti-aliased. I've got them
installed and anti-aliased just fine but KDE doesn't see them. Gnome tools
and gronky old X tools do. So I'm thinking I'm missing some KDE specific
index file but I'm not sure what it is. I suppose it's also possible I've
got some bad configuration that KDE chokes on but gnome and X just breeze
past.

I appreciate the help though. This document

http://www.paulandlesley.org/linux/debian_tt.html

might be more relevent for me although it is old.