You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, July 28th 2003, 9:47am

fonts: is this some sort of RH thing?

I have a RH 7.1 system with KDE 2.1.1. I wanted to improve the fonts in openoffice, so I copied the tt fonts on my Windows XP system into a new directory on my linux KDE workstation, /usr/share/fonts/truetype, and used the spadmin command as described in OO help to install them. It worked and Openoffice reads these fonts fine.

I then tried to make these fonts accessible to other applications. When I check the font paths on my desktop, I get the following:

[root@localhost program]# chkfontpath
Current directories in font path:
1: /usr/X11R6/lib/X11/fonts/misc:unscaled
2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled
3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled
4: /usr/X11R6/lib/X11/fonts/misc
5: /usr/X11R6/lib/X11/fonts/Type1
6: /usr/X11R6/lib/X11/fonts/Speedo
7: /usr/X11R6/lib/X11/fonts/75dpi
8: /usr/X11R6/lib/X11/fonts/100dpi
9: /usr/share/fonts/default/Type1
10: /usr/share/fonts/default/TrueType
11: /usr/share/fonts/ja/TrueType
12: /usr/share/AbiSuite/fonts
13: /usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled
14: /usr/X11R6/lib/X11/fonts/latin2/Type1
15: /usr/X11R6/lib/X11/fonts/latin2/100dpi
16: /usr/share/fonts/ISO8859-7/misc:unscaled
17: /usr/share/fonts/ISO8859-7/75dpi:unscaled
18: /usr/share/fonts/ISO8859-7/100dpi:unscaled
19: /usr/share/fonts/ISO8859-7/misc
20: /usr/share/fonts/ISO8859-7/Type1
21: /usr/share/fonts/ISO8859-7/75dpi
22: /usr/share/fonts/ISO8859-7/100dpi
23: /usr/share/fonts/ISO8859-9/misc:unscaled
24: /usr/share/fonts/ISO8859-9/100dpi:unscaled
25: /usr/share/fonts/ISO8859-9/misc
26: /usr/share/fonts/ISO8859-9/100dpi
27: /usr/share/fonts/KOI8-R/100dpi:unscaled
28: /usr/share/fonts/KOI8-R/100dpi

Are there any obsolete fonts (out of 28 directories of fonts!) here I should delete? I no longer use Abiword (I prefer open office), maybe that's one.

RH does not use fc-cache.
When I try to add the above new directory to my font path, I get this error:

[root@localhost program]# chkfontpath --add /usr/share/fonts/truetype
chkfontpath: error opening /usr/share/fonts/truetype/fonts.dir, unwilling to add path

According to the Red Hat documentation "you must have a fonts.dir file in place for chkfontpath to work".
Is this some sort of RH thing? Should I have copied the tt fonts to one of the 28 directories on the above list (they all have a fonts.dir file)?
I would appreciate any explanation of the error or advice how to proceed with this.


Greg

2

Tuesday, July 29th 2003, 8:28am

With kde's kcontrol you can also install true type fonts, without the hassle of fonts.dir files etc..

Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

3

Tuesday, July 29th 2003, 5:33pm

I thought I must have overlooked the obvious thing (again!) but this time I did not. The documentation says you do:

Control Center->System->Font Installer

However in my version KDE 2.1.1 there is no Font Installer.

In fact I generally like the KDE fonts and do not HAVE to have the additional tt fonts; but is there a way to add them without font installer- maybe just copy them to one of the directories that are currently recognized as a source of fonts?

greg

4

Tuesday, July 29th 2003, 10:25pm

Hmm, kde 2.1.1 did not have the fontinstaller?

OK, fontinstallers are just convenient frontends for the commands you have to execute in order to add new font directories to X11.
To know which commands U need to use, we need to know which version of XFree U R using, XFree 3.x or Xfree 4.x?

Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

5

Wednesday, July 30th 2003, 11:00am

Me again :)
Please look at http://developer.berlios.de/projects/xfstt/
It is a very good TTF-fontserver for XFree.

Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

6

Wednesday, July 30th 2003, 8:49pm

Thanks for these comments.

a. version of XFree:
README for XFree86[tm] 4.0.3, it says What is XFree86 4.0.3? XFree86 4.0.3 is the first
update to 4.0.2, the third full release in the new
XFree86 4 series.
In Control Centre/Information/X-server , Vendor release no is 4003; Version No 11.0
(As already noted, I have RH 7.1 and KDE 2.1.1)

b. xsftt: I looked at xsftt; given that I already have a font server xfs, will
this one work without interfering with the existing one?

While looking at this question I found another lead on RH font installation, how to get
the fonts.dir made:
ttmkfdir -o fonts.scale
mkfontdir

This worked; then I could add the fonts to the X-server with
chkfontpath --add /usr/share/fonts/truetype this also worked

So now the tt fonts are in their own directory, that is recognised by the X-server. In the
Konqueror browser, they appear under /settings/appearance and I
think are accessed correctly, BUT, when I try to add them to a KDE application (eg I am
using kedit) or add them in kcontrol "select font-control centre", the
new fonts are not visible. I am offered default, 4 iso8* type character sets, and 2 koi8*
character sets; but I am fairly sure the new fonts are not accessed.

It seems now when I try to adjust fonts with kcontrol, the xfs hangs up; otherwise the system is fine. Here I try to show settings:

[root@localhost /root]# ps ax | grep xfs
1090 ? S 0:00 xfs -droppriv -daemon

[root@localhost /root]# xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00
000000
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fa9fffffffdfe5ff
ffffffffffffffff
ffffffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel:
16777215
Font Path: /home/greg/.kde/share/fonts/override,unix/:7100,/home/greg
/.kde/share/fonts
Font cache:
hi-mark (KB): 1024 low-mark (KB): 768 balance (%): 70


Greg