SuSE Linux 9.2 Professional: What program(s) modify the config file /etc/fonts/local.conf? It seems to have been updated automatically recently. Also, the files /etc/fonts/Fontmap and ~/.fonts.conf were also updated at the same time (within one minute). I've already looked at fonts-config and that doesn't seem to be it. I'm chasing down some font problems on my system (related to Chinese fonts) and am trying to figure out why the number of font entries listed via the various utilities (e.g., xlsfonts, xfontsel, fc-list) keeps changing even though I've not installed or removed any fonts nor have I attempted to alter their configuration. I did run the KDE Font Installer and simply browsed what fonts were installed, but did not make any changes, though additional font entries appeared after that run. Also, the fonts module of SuSEconfig runs (along with all the other SuSEconfig modules) every time I install any updates via YOU, and several font entries disappeared after the most recent run. Help! I've read through the Administration Guide section on X11 fonts as well as the relevant sections of the suse-cjk web pages and anything else I could get my hands on. Thanks, Phil -- Philip Amadeo Saeli SuSE Linux 9.2 psaeli@zorodyne.com
Philip Amadeo Saeli
SuSE Linux 9.2 Professional:
What program(s) modify the config file /etc/fonts/local.conf? It seems to have been updated automatically recently. Also, the files /etc/fonts/Fontmap
This file doesn't even exist by default, but the KDE font installer creates it, even if you don't change anything in the KDE font installer.
and ~/.fonts.conf were also updated at the same time (within one minute). I've already looked at fonts-config and that doesn't seem to be it.
No, certainly not.
I'm chasing down some font problems on my system (related to Chinese fonts) and am trying to figure out why the number of font entries listed via the various utilities (e.g., xlsfonts, xfontsel, fc-list) keeps changing even though I've not installed or removed any fonts nor have I attempted to alter their configuration.
I did run the KDE Font Installer and simply browsed what fonts were installed, but did not make any changes, though additional font entries appeared after that run.
The KDE font installer modifies ~/.fonts.conf if you run it as regular user. I creates /etc/fonts/Fontmap and modifies /etc/fonts/local.conf if you run it as root. The change done by the KDE font installer to /etc/fonts/local.conf appears to be harmless. It just adds <dir>/usr/X11R6/lib/X11/fonts/</dir> <dir>/opt/kde3/share/fonts</dir> These directories are already in /etc/fonts/fonts.conf so it doesn't make any difference. /etc/fonts/Fontmap is a ghostscript Fontmap, unless you are printing anything with Ghostscript it doesn't matter.
Also, the fonts module of SuSEconfig runs (along with all the other SuSEconfig modules) every time I install any updates via YOU, and several font entries disappeared after the most recent run. Help!
You can run it manually with
SuSEconfig --module fonts
or you can use
/usr/sbin/fonts-config --force
if you want to make sure the complete setup is created from scratch
without checking any timestamps.
--
Mike FABIAN
Before I say anything else, I'd like to thank the SuSE team for all the
improvements in 9.2! Though I have some font-related issues, the font
handling in this release far exceeds that in any previous release I've
used. The displays look much nicer and the performance is definitely up
to snuff! (KDE under 9.0 was VERY slow!). Also, the CJK input methods,
particularly SCIM, are much improved in features and in integration with
the rest of the system. Thanks!
* Mike FABIAN
Philip Amadeo Saeli
さんは書きました: SuSE Linux 9.2 Professional:
What program(s) modify the config file /etc/fonts/local.conf? It seems to have been updated automatically recently. Also, the files /etc/fonts/Fontmap
This file doesn't even exist by default, but the KDE font installer creates it, even if you don't change anything in the KDE font installer.
It appears that a local.conf (boilerplate only, apparently) file is indeed installed by default; at least it is present in the rpm file (excerpted below) and there is no postinstall script (which might do something else with the file), only a call to ldconfig. Partial output of "rpm -ql fontconfig" (2.2.96.20040728-9): /etc/fonts /etc/fonts/fonts.conf /etc/fonts/fonts.dtd /etc/fonts/local.conf <<<=== Here it is! /etc/fonts/suse-generic-names.conf /etc/fonts/suse-post-user.conf /etc/fonts/suse-pre-user.conf
I did run the KDE Font Installer and simply browsed what fonts were installed, but did not make any changes, though additional font entries appeared after that run.
The KDE font installer modifies ~/.fonts.conf if you run it as regular user. I creates /etc/fonts/Fontmap and modifies /etc/fonts/local.conf if you run it as root.
Are there any configuration files for the KDE Font Installer (e.g., to specify the location of the local.conf file)? I was not able to find any significant documentation on it either, though I did find a raw XML file, /opt/kde3/share/doc/HTML/en/kcontrol/kcmfontinst/index.docbook, which had some info, via the locate command, though I was not able to access it via the KDE or SuSE help browsers. How to find such help files thru the help browsers?
The change done by the KDE font installer to /etc/fonts/local.conf appears to be harmless. It just adds
<dir>/usr/X11R6/lib/X11/fonts/</dir> <dir>/opt/kde3/share/fonts</dir>
These directories are already in /etc/fonts/fonts.conf so it doesn't make any difference.
It also added the following, which, in addition to the above, also appear in the fonts.conf file: <dir>/usr/local/share/fonts</dir> <dir>/usr/share/fonts</dir> Additionally, it added all of my local fonts dirs (I have my local fonts in a separate filesystem -not- rooted under /usr/local). How did it find them? The only place I added entries for them was to the XF86Config file (xorg.conf). Does it look there? Apparently this (the local fonts entries added to local.conf) is where the additional fonts came from though, unfortunately, I hadn't listed the fonts out prior to the change so was not able to make a comparison to determine that for certain. So, it appears that, in addition to running SuSEconfig, it is also necessary to run the KDE Font Installer to ensure all local fonts are made available to the Xft/fontconfig subsystem, right? One last question: Is Xft/fontconfig yet able to handle BDF or CID-keyed fonts? I noticed the comments regarding BDF and CID-keyed fonts in the fonts-config script and wonder if they still apply. The same comments were in the 8.2 version of fonts-config, BTW. Also, the FreeType2 web page claims that the underlying FreeType2 software is indeed able to handle both types of fonts and I was not able to find any bugs related to either in the FreeType2 bugzilla. I'm tempted to try them out. I'd especially like to be able to use the CID-keyed fonts. Thanks, Phil -- Philip Amadeo Saeli SuSE Linux 9.2 psaeli@zorodyne.com
Philip Amadeo Saeli
Are there any configuration files for the KDE Font Installer (e.g., to specify the location of the local.conf file)? I was not able to find any significant documentation on it either, though I did find a raw XML file, /opt/kde3/share/doc/HTML/en/kcontrol/kcmfontinst/index.docbook, which had some info, via the locate command, though I was not able to access it via the KDE or SuSE help browsers. How to find such help files thru the help browsers?
I don't know of any documentation for kfontinst either.
The change done by the KDE font installer to /etc/fonts/local.conf appears to be harmless. It just adds
<dir>/usr/X11R6/lib/X11/fonts/</dir> <dir>/opt/kde3/share/fonts</dir>
These directories are already in /etc/fonts/fonts.conf so it doesn't make any difference.
It also added the following, which, in addition to the above, also appear in the fonts.conf file:
<dir>/usr/local/share/fonts</dir> <dir>/usr/share/fonts</dir>
It doesn't matter if the same directories are added twice, this can not be the cause of your problems.
Additionally, it added all of my local fonts dirs (I have my local fonts in a separate filesystem -not- rooted under /usr/local). How did it find them? The only place I added entries for them was to the XF86Config file (xorg.conf). Does it look there?
Possible. But I'm not sure. My script /usr/sbin/fonts-config (called by SuSEconfig) looks into the XF86Config file to find out in which directories the fonts.scale, fonts.dir, ... files need to be created. But I don't write anything to /etc/fonts/local.conf.
So, it appears that, in addition to running SuSEconfig, it is also necessary to run the KDE Font Installer to ensure all local fonts are made available to the Xft/fontconfig subsystem, right?
If you have additional directories with fonts which are not sub-directories of directories already present in /etc/fonts/fonts.conf, /etc/fonts/local.conf or ~/.fonts.conf, you have to add the directories somehow. The easiest way in my opinion is to edit /etc/fonts/local.conf or ~/.fonts.conf manually. Running the KDE font installer is not necessary then.
One last question: Is Xft/fontconfig yet able to handle BDF or CID-keyed fonts?
No.
Support for BDF fonts is implemented but
currently there are severe bugs which make this unusable.
Support for CID-keyed fonts is only partly implemented.
For example
ftview 50 /usr/share/ghostscript/Resource/CIDFont/WadaGo-Bold
shows you the glyphs, i.e. freetype 2.1.9 can open the font
and render the glyphs.
(the font in this example is in the CID-keyed-fonts-Wada rpm package).
But there is no support for the CMaps yet, i.e. the glyphs displayed
with the above command are in no particular order. To make the fonts
usable with Xft/fontconfig, you need Unicode encoded fonts. I.e. both
the font itself and the CMap which maps the glyph order to Unicode are
necessary. freetype doesn't support that yet. There was some
discussion on the freetype mailing list, but it isn't yet implemented.
--
Mike FABIAN
participants (2)
-
Mike FABIAN
-
Philip Amadeo Saeli