This is a discussion on TTF fonts: Conclusion within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, About two months ago, I posted a message in this NG about installing TTF fonts. I don't know ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, About two months ago, I posted a message in this NG about installing TTF fonts. I don't know how to quote NG threads, but anyway, in a browser, it's here: http://groups.google.fr/groups?hl=fr...426999%2462 6 a14ce%40news.free.fr&rnum=1&prev=/groups%3Fq%3Dfonts%2520mickey%2540mous e.com%26hl%3Dfr%26lr%3D%26sa%3DN%26tab%3Dwg Jeffrey Froman produced two conclusive answers to my question: 1) use the KDE font installer (works very well) 2) Without using KDE (or for adding fonts globally), copy the ttf files to /usr/X11R6/lib/X11/fonts/ttf_directory, run fc-cache -f... and that's it. I tried this out also, and it works like a charm. But then, I read the following suggestion, by DIG: DIG wrote: > > 1. copy your TT fonts (*.ttf-files) into the directory $TT_FONTS (*) > (e.g. /usr/local/share/font/truetype) > NB: you must be able to write into this directory > > 2. edit /etc/fonts/local.conf to make it look like this: > > ,---[ /etc/fonts/local.conf ]--- > | <?xml version="1.0"?> > | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> > | <!-- /etc/fonts/local.conf file to configure system font access (local) > | --> <fontconfig> > | <dir>$TT_FONTS</dir> > | </fontconfig> > `---[ ]--- > > 3. generate special dir-files > $ cd $TT_FONTS > $ /usr/X11R6/bin/mkfontscale . > $ /usr/X11R6/bin/mkfontdir . > $ /usr/X11R6/bin/mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings . > $ /usr/X11R6/bin/fc-cache -v . > > 4. check whether galeon and mozilla are working properly (they should) > > 5. add TT-fonts to the current X-session: > $ xset +fp $TT_FONTS > $ xset fp rehash > > 6. add these TT-fonts permanently -- edit /etc/X11/xorg.conf and add > this line: > > FontPath "$TT_FONTS" > > to the Section "Files"; make sure you have > > Load "freetype" > > in "Module" section; restart X; enjoy. > > (*): replace $VARS_LIKE_THIS by *real* locations. > > References: > http://www.openbsd.org/faq/truetype.html > http://sourceforge.net/projects/font-tool/ > http://sourceforge.net/projects/corefonts/ > http://www.xfree86.org/current/fonts2.html > http://www.linuxfromscratch.org/blfs...e86-setup.html > > [...] > > Just make sure that you understand every step in this instruction. So how comes this - detailed explanation - somewhat reminds me of the french saying "Hell is paved with good intentions"? Niki Kovacs -- Whereof one cannot speak, thereof one frequently goes ranting on and on at ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus, first draft) |
| ||||
| On Sun, 24 Oct 2004 08:31:29 +0200, Kiki Novak wrote: > About two months ago, I posted a message in this NG about installing TTF > fonts. I don't know how to quote NG threads, but anyway, in a browser, > it's here: > So how comes this - detailed explanation - somewhat reminds me of the > french saying "Hell is paved with good intentions"? Actually there is more as you have a crippled version of freetype. To get the real deal you need to compile it from sounce and install it. ======================================= The TrueType Bytecode Interpreter The reason why TrueType fonts can render so beautifully at small pixel sizes comes from the way glyph images are described and processed according to the TrueType specification. Namely: Each glyph image is stored in a TrueType font file as a simple scalable outline (built from line segments and quadratic bezier arcs), to which is associated an array of bytes, called the glyph program. The glyph program really contains a series of program instructions, written for a specific virtual machine (the TrueType VM), defined in the TrueType specification. The TrueType VM is heavily designed towards the processing of geometric shapes. For example, it contains instructions to move points, measure distances, align points to the pixel grid, etc.. When a glyph needs to be rendered at a specific pixel size, its outline is loaded and scaled linearly to the current device space. Its glyph program is fed to a Bytecode Interpreter that executes it. Then see... http://www.truetype.demon.co.uk/tthints.htm |