ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: Шрифты в GTK1
Date: Wed, 16 Apr 2003 17:12:26 +0400
Message-ID: <20030416171226.67655ae0.vsu@altlinux.ru> (raw)
In-Reply-To: <3E9D5379.5000007@rmts.donpac.ru>

On Wed, 16 Apr 2003 16:58:33 +0400
Прокопьев Евгений <john@rmts.donpac.ru> wrote:

> Sergey Vlasov пишет:
> > On Wed, 16 Apr 2003 15:35:52 +0400
> > Прокопьев Евгений <john@rmts.donpac.ru> wrote:
> > 
> > 
> >>Не могу установить шрифт Tahoma для GTK1-приложений. В глобальном 
> >>конфиге GTK1 работает только верхняя строчка, закомментированные (если 
> >>какую-нибудь из них заменить на раскомментированную) не работают. Файл 
> >>~/.gtkrc отсутствует.
> >>
> >>$ cat /etc/gtk/gtkrc.ru_RU.koi8r
> >>style "gtk-default-koi8-r" {
> >>	fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-*"
> >>#	fontset=-microsoft-tahoma-bold-r-normal-*-14-*-*-*-p-*-koi8-r
> >>#	fontset="-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-r"
> >>}
> >>class "GtkWidget" style "gtk-default-koi8-r"
> > 
> > 
> > Вот так работает:
> > 
> > style "gtk-default-koi8-r" {
> >         fontset = "-*-verdana-medium-r-normal-*-12-*-*-*-p-*-*-*"
> > }
> > class "GtkWidget" style "gtk-default-koi8-r"
> 
> Verdana я себе не ставил, только добавил следующие файлы
> 
> $ ls -l /usr/X11R6/lib/X11/fonts/msttf/
> итого 508
> -rw-r--r--    1 root     root         2059 Апр  4 09:11 fonts.cache-1
> -rw-r--r--    1 root     root         2315 Апр  4 09:11 fonts.dir
> -r--r--r--    1 root     root       252384 Мар 23  2000 TAHOMABD.TTF
> -r--r--r--    1 root     root       257636 Мар 23  2000 TAHOMA.TTF
> 
> и путь в /etc/X11/fs/config. Еще fc-cache в этой папке запустил, да 
> fonts.dir взял из ALM2.0, на котором этот шрифт ставился с помощью 
> drakefont. Все строчки, кроме Tahoma из файла удалил, количество строк 
> подправил.
> 
> Может я что-то сделал не так?

Вообще-то ещё должна быть ссылка encodings.dir (ln -s
/etc/X11/encodings.dir encodings.dir). Хотя кодировка koi8-r должна бы
и без этого распознаваться.

Проверьте, что эта команда отображает табличку с символами шрифта
(если она не работает, ковыряться с GTK+ бессмысленно):

xfd -fn "-microsoft-tahoma-bold-r-normal-*-14-*-*-*-p-*-koi8-r"

Попробуйте переименовать файлы шрифта строчными буквами
(соответствующим образом исправив fonts.dir).


  reply	other threads:[~2003-04-16 13:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-16 11:35 [Comm] " Прокопьев Евгений
2003-04-16 12:04 ` [Comm] " Sergey Vlasov
2003-04-16 12:58   ` Прокопьев Евгений
2003-04-16 13:12     ` Sergey Vlasov [this message]
2003-04-17  5:48       ` Прокопьев Евгений
2003-04-17 12:20         ` Sergey Vlasov
2003-04-18  4:12           ` Прокопьев Евгений
2003-04-16 12:04 ` [Comm] " Епифанов Сергей
2003-04-16 13:00   ` Прокопьев Евгений

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=20030416171226.67655ae0.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git