From: "Yuri N. Yaschenko" <yura@kr.spfu.gov.ua> To: sisyphus@altlinux.ru Subject: [sisyphus] X11 & ttf Date: Fri, 16 May 2003 11:41:37 +0300 Message-ID: <200305161141.37524.yura@kr.spfu.gov.ua> (raw) Hi! Может кто просветлить как устанавливать (и чем) шрифты ttf (да и не только)? Раньше я ставил их drakefont. Щас запустил sudo drakefont, пободался с ним, показал ему несколько шрифтов. Непонятно что он с ними сделал. В эгойном директории (drakfont/ttf) шрифты не появились. Ладно, запустил sudo kcmshell kcmfontinst показал ему шрифты. Он их поставил. Они даже стали видны. Ток я не нашел куда он их поставил. Получается есть 2 средства. Какое из них пользовать? А еще в шапке в стартовом скрипте xfs есть замечательная вещь, которую неплохо было бы включить в пакет: ..... buildfontlist() { for d in $(/usr/sbin/chkfontpath --list | cut -f 2 -d ':') ;do if [ -d "$d" ]; then cd $d # Check if we need to rerun mkfontdir NEEDED=no if ! [ -e fonts.dir ]; then NEEDED=yes elif [ "x$(find . -type f -newer fonts.dir 2>/dev/null)" != "x" ];then NEEDED=yes fi if [ "$NEEDED" = "yes" ]; then rm -f fonts.dir &>/dev/null if ls | grep -i "\.tt[cf]$" &>/dev/null; then # TrueType fonts found... ttmkfdir . >fonts.scale mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings \ -e /usr/X11R6/lib/X11/fonts/encodings/large . &>/dev/null chmod a+r fonts.scale fonts.dir fi if [ "x`ls |egrep -iv '\.tt[cf]$|^fonts\.|^encodings\.'`" != "x" ]; then # This directory contains fonts that are not TrueType... mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings \ -e /usr/X11R6/lib/X11/fonts/encodings/large . &>/dev/null chmod a+r fonts.dir fi fi fi done } ... start() { ... [ -x /usr/sbin/chkfontpath ] && buildfontlist ... -- By, Yuri.
next reply other threads:[~2003-05-16 8:41 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-16 8:41 Yuri N. Yaschenko [this message] 2003-05-16 8:52 ` Шишков Евгений
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200305161141.37524.yura@kr.spfu.gov.ua \ --to=yura@kr.spfu.gov.ua \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git