ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] X11 & ttf
@ 2003-05-16  8:41 Yuri N. Yaschenko
  2003-05-16  8:52 ` Шишков Евгений
  0 siblings, 1 reply; 2+ messages in thread
From: Yuri N. Yaschenko @ 2003-05-16  8:41 UTC (permalink / raw)
  To: sisyphus

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sisyphus] X11 & ttf
  2003-05-16  8:41 [sisyphus] X11 & ttf Yuri N. Yaschenko
@ 2003-05-16  8:52 ` Шишков Евгений
  0 siblings, 0 replies; 2+ messages in thread
From: Шишков Евгений @ 2003-05-16  8:52 UTC (permalink / raw)
  To: sisyphus

On Fri, 16 May 2003 11:41:37 +0300, Yuri N. Yaschenko <yura@kr.spfu.gov.ua> 
wrote:

> Может кто просветлить как устанавливать (и чем) шрифты ttf (да и не 
> только)?

Очень хороший способ описан на www.atmsk.ru.
Там даже скриптик есть для удаления не нужных кодировок.

-- 
С уважением - Евгений.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-16  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16  8:41 [sisyphus] X11 & ttf Yuri N. Yaschenko
2003-05-16  8:52 ` Шишков Евгений

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