Portál AbcLinuxu, 16. července 2025 21:04
1) nahral jsem ttf fonty z cd do /usr/X11R6/lib/X11/fonts/TTF 2) # ttfmkfdir vytvorilo fonts.dir (v adresari TTF) 3) # ttmkfdir >fonts.scale vytvorilo fonts.scale (v adresari TTF) 4) upravil jsem /etc/X11/fs/config, do promenne catalogue jsem pridal radku /usr/X11R6/lib/X11/fonts/TTF, 5) # /etc/init.d/xfs restart 6) # tail -20 /var/log/messages | grep xfs Jul 29 19:58:47 localhost xfs[4869]: terminating Jul 29 19:58:47 localhost xfs: xfs shutdown succeeded Jul 29 19:58:47 localhost xfs[6029]: ignoring font path element /usr/X11R6/lib/X11/fonts/Speedo (unreadable) Jul 29 19:58:47 localhost xfs[6029]: ignoring font path element /usr/X11R6/lib/X11/fonts/freefont (unreadable) Jul 29 19:58:47 localhost xfs[6029]: ignoring font path element /usr/X11R6/lib/X11/fonts/sharefont (unreadable) Jul 29 19:58:47 localhost xfs: xfs startup succeededtzn ze zadny problem s /usr/X11R6/lib/X11/fonts/TTF by nemel byt, presto se v gimpu (kvuli kteremu jsem potreboval pridat fonty) ani v openoffice nove fonty nezobrazi...za kazdou radu budu vdecny
/etc/X11/XF86Config
(nebo toho pro Xorg) dejte ty cesty. Ale katalogy fontů se dělají jinak. V oněch adresářích spusťte:
mkfontscale mkfontdirNa pořadí záleží. Program
ttmkfdir
možná jde použít taky, ale to jsem nezkoušel.
# head -30 fonts.conf [?xml version="1.0"?] [!DOCTYPE fontconfig SYSTEM "fonts.dtd"] [!-- /etc/fonts/fonts.conf file to configure system font access --] [fontconfig] [!-- DO NOT EDIT THIS FILE. IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. LOCAL CHANGES BELONG IN 'local.conf'. The intent of this standard configuration file is to be adequate for most environments. If you have a reasonably normal environment and have found problems with this configuration, they are probably things that others will also want fixed. Please submit any problems to the fontconfig bugzilla system located at fontconfig.org Note that the normal 'make install' procedure for fontconfig is to replace any existing fonts.conf file with the new version. Place any local customizations in local.conf which this file references. Keith Packard --] [dir]/usr/share/fonts[/dir] [dir]/usr/X11R6/lib/X11/fonts/Type1[/dir] [dir]/usr/X11R6/lib/X11/fonts/OTF[/dir] [dir]~/.fonts[/dir] [!-- Accept deprecated 'mono' alias, replacing it with 'monospace' --] ======================================== # cat local.conf [?xml version="1.0"?] [!DOCTYPE fontconfig SYSTEM "fonts.dtd"] [!-- /etc/fonts/local.conf file for local customizations --] [fontconfig] [!-- Enable sub-pixel rendering [match target="font"] [test qual="all" name="rgba"] [const]unknown[/const] [/test] [edit name="rgba" mode="assign"][const]rgb[/const][/edit] [/match] --] [/fontconfig]
fonts.conf
něco hrabe samo od sebe, bude dobré přidat cesty do local.conf
, ale úplně stejně.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.