5.7 Fonts: True Type Font Server
You can add your own fonts and sharing them by putting them into
/usr/local/share/fonts/truetype
. You need to run a couple of
commands to make them available to X (thanks to Adam Trickett 080302):
# aptitude install ttmkfdir
# cd /usr/local/share/fonts/truetype
# mkdir ttf-foo
(then put your foo fonts in here)
# cd foo
# ttmkfdir
# head -1 fonts.scale > fonts.dir
# tail -n +2 fonts.scale | tac >> fonts.dir
# cp fonts.dir fonts.scale
% I originally had:
%bash %# cd /usr/local/share/fonts %# mkdir truetype %# chmod go+rx truetype %# cd truetype %# wget http://www.children2children.net/promos/fonts/kidprint.zip %# unzip kidprint.zip %# rm kidprint.zip %# mkfontscale (or ttmkfdir -o fonts.scale ?????) %# mkfontdir %
% Adam Tricket 080302: On Etch and later there is no % /etc/X11/fs/config anymore. I think fonts got reorganised a lot when % X11 got upgraded and defoma took over more control on the system.
% I originally had:
%You need to add the path to the catalogue
entry in
%/etc/X11/fs/config
:
%bash % /usr/local/share/fonts/truetype/ %
%A couple of other paths that should also be included there for the
%defoma
package managed fonts to be available are:
%bash % /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/ % /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ %
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0