User Tools

Site Tools


font

Slackware Fonts

Questa pagina spiega come configuro i font su Slackware. Il documento da cui partire è Optimizing Slackware Linux’s Fonts.

Getting Unicode/UTF-8 Support

Setting A Unicode Locale

Modificare /etc/lilo.conf per gestire i font UTF-8

lilo.conf
append=" vt.default_utf8=1"

Modificare /etc/profile.d/lang.sh e cambiare la lingua

lang.sh
export LANG=en_US.UTF-8

Setting A Console Font

Modificare ~/.bashrc

.bashrc
if [ $TERM = "linux" ]; then
    setfont ter-v16n
fi

Setting Your X Font Resolution

Modificare /usr/bin/startx

startx
defaultserverargs="-dpi 96"

Getting Subpixel Rendering (LCD Monitors Only)

Ricompilare freetype prendendo i sorgenti dalla distribuzione Slackware ufficiale source/l/freetype

freetype.Slackbuild
...
BUILD=${BUILD:-1subpixel}
...
# The line below enables code patented by Microsoft, so don't uncomment it
# unless you have a license to use the code and take all legal responsibility
# for doing so.
# Please see this web site for more details:
#   http://www.freetype.org/patents.html
zcat $CWD/freetype.subpixel.rendering.diff.gz | patch -p1 --verbose || exit 1
...

Quindi creare il link simbolico

cd /etc/fonts/conf.d
ln -s 11-lcdfilter-default.conf ../conf.avail/11-lcdfilter-default.conf
font.txt · Last modified: 2020/06/01 21:11 by 127.0.0.1