* [Comm] Shrift menu v Firefox @ 2006-07-14 21:09 ALT Linux User 2006-07-14 21:51 ` Владимир Гусев 0 siblings, 1 reply; 7+ messages in thread From: ALT Linux User @ 2006-07-14 21:09 UTC (permalink / raw) To: ALT Linux Community ALT Linux Compact 3.0 DVD Подскажите пожалуйста, как поменять шрифт менюшек Firefox? Про userChrome.css я знаю, и он у меня поменян, и вроде лежит в профилях (один и тот же везде, где только можно) - однако, шрифт как был так и есть. Может быть там что-то не правильно? Есть у кого нибудь "правильный"? Шрифт, который хочется использовать - oффтопиковская Tahoma. Firefox не из дистрибутива, поставлен с сайта, 1.5.0.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-14 21:09 [Comm] Shrift menu v Firefox ALT Linux User @ 2006-07-14 21:51 ` Владимир Гусев 2006-07-14 21:58 ` ALT Linux User 0 siblings, 1 reply; 7+ messages in thread From: Владимир Гусев @ 2006-07-14 21:51 UTC (permalink / raw) To: ALT Linux Community > ALT Linux Compact 3.0 DVD > Подскажите пожалуйста, как поменять шрифт менюшек Firefox? Про > userChrome.css я знаю, и он у меня поменян, и вроде лежит в профилях > (один и тот же везде, где только можно) - однако, шрифт как был так и > есть. > Может быть там что-то не правильно? Есть у кого нибудь "правильный"? > Шрифт, который хочется использовать - oффтопиковская Tahoma. > Firefox не из дистрибутива, поставлен с сайта, 1.5.0.4 Надо объявить Тахому в fontconfig как Sans.. /etc/fonts/fonts.conf приписать алиас Тахомы, и поставить ее на первое место в списке альтернативных шрифтов на роль Sans.. Вот тогда и схватится.. а чтобы размер нормальный был - один из способов - жестко прописать dpi при запуске X-сервера.. Вот тогда никакого разнобоя между размерами шрифтов gtk2 и qt не будет.. Фрагмент fonts.conf: <!-- Sans-serif faces --> <alias> <family>Tahoma</family> <family>Bitstream Vera Sans</family> <family>Helvetica</family> <family>Arial</family> <family>Verdana</family> <family>Albany AMT</family> <family>Nimbus Sans L</family> <family>Luxi Sans</family> <family>Kochi Gothic</family> <family>AR PL KaitiM GB</family> <family>AR PL KaitiM Big5</family> <family>MS ????</family> <family>Baekmuk Dotum</family> <family>FreeSans</family> <default><family>sans-serif</family></default> </alias> Или же вот так - фрагмент alt-post-user.conf^ <alias> <family>sans-serif</family> <prefer> <family>Tahoma</family> <family>Verdana</family> <family>Arial</family> <family>XLinSans</family> <family>URW Gothic L</family> <family>Albany AMT</family> <family>Luxi Sans</family> <family>Mukti Narrow</family> <family>FreeSans</family> <family>Bitstream Vera Sans</family> <family>Nimbus Sans L</family> <family>Helvetica</family> <family>TSCu_Paranar</family> <family>Terafik</family> <family>HGPGothicB</family> <family>IPAPGothic</family> <family>Sazanami Gothic</family> <family>Kochi Gothic</family> <family>FZSongTi</family> <family>FZMingTiB</family> <family>AR PL SungtiL GB</family> <family>AR PL Mingti2L Big5</family> <family>Baekmuk Gulim</family> <family>Baekmuk Dotum</family> </prefer> </alias> Что касается dpi, то если runlevel у вас = 3 (то есть иксы загружаете по команде startx), то прописываете следующее в /etc/X11/xserverrc: #!/bin/sh # $Id: xserverrc,v 1.1 2003/10/14 11:47:21 ldv Exp $ usr_X11R6_bin_X=/usr/X11R6/bin/X exec "$usr_X11R6_bin_X" -dpi 96 -nolisten tcp "$@" Разница с содержимым по умолчанию тут в наличии ключа -dpi 96.. Вот тогда все шрифты выглядят одного размера, если программы не используют размер шрифтов из gtk2.. для gtk2 размер шрифтов задается в файле ~/.gtkrc-2.0: # -- THEME AUTO-WRITTEN DO NOT EDIT include "/usr/share/themes/fishing-the-sky/gtk-2.0/gtkrc" style "user-font" { font_name="Sans 8" } widget_class "*" style "user-font" gtk-font-name="Sans 8" include "/home/vova/.icewm/gtkrc" include "/home/vova/.gtkrc.mine" # -- THEME AUTO-WRITTEN DO NOT EDIT ключевым тут является gtk-font-name="Sans 8" Попробуйте.. Может получится.. -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-14 21:51 ` Владимир Гусев @ 2006-07-14 21:58 ` ALT Linux User 2006-07-14 22:15 ` Владимир Гусев 0 siblings, 1 reply; 7+ messages in thread From: ALT Linux User @ 2006-07-14 21:58 UTC (permalink / raw) To: ALT Linux Community Спасибо за подробную инструкцию! Сейчас поэкспериментирую.... ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-14 21:58 ` ALT Linux User @ 2006-07-14 22:15 ` Владимир Гусев 2006-07-14 23:42 ` ALT Linux User 0 siblings, 1 reply; 7+ messages in thread From: Владимир Гусев @ 2006-07-14 22:15 UTC (permalink / raw) To: ALT Linux Community > Спасибо за подробную инструкцию! Сейчас поэкспериментирую.... И, конечно же, не забудьте в fonts.conf объявить каталог шрифтов с тахомой, и после внесения ее в алиас, сделать команду fc-cache -f от рута (если каталог шрифтов лежит в /usr/и т.д./fonts. Предполагается, что вы уже создали нормальный каталог с наличием fonts.dir, fonts.scale и т.д. - это для того, чтобы и xfs, минуя fonyconfig, увидел Тахому.. После ее можно использовать и в gtk1 и в иксовых приложениях..НО, почему-то в ALC 3 в gtk1 тахома перестала нормально отображаться, равно как и в ОО2.. Злые языки (шучу) утверждают, что с тахомой что-то не так, неправильный у нее то ли хинтинг, то ли еще что-то (а может просто не хотят говорить о своих недоработках, не знаю.. несколько лет все было нормально, а теперь, видите ли все разработчики прозрели и нашли в Тахоме "изъяны"..).. в этом случае для gtk1 и иксовых прог можно использовать verdana.. А для ОО2 обычный Arial.. -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-14 22:15 ` Владимир Гусев @ 2006-07-14 23:42 ` ALT Linux User 2006-07-15 7:59 ` Владимир Гусев 0 siblings, 1 reply; 7+ messages in thread From: ALT Linux User @ 2006-07-14 23:42 UTC (permalink / raw) To: ALT Linux Community > И, конечно же, не забудьте в fonts.conf объявить каталог шрифтов с Мда. Тогда, Владимир, прямо сейчас я не смогу, к сожалению поэкспериментировать - надо почитать, поскольку из Вашего последнего письма я понял, что много третьих факторов. А есть ли способ попроще, через userChrome.css? Ведь на сайте декларируется, что мол, поправте, как вам надо и всё. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-14 23:42 ` ALT Linux User @ 2006-07-15 7:59 ` Владимир Гусев 2006-07-15 18:40 ` ALT Linux User 0 siblings, 1 reply; 7+ messages in thread From: Владимир Гусев @ 2006-07-15 7:59 UTC (permalink / raw) To: ALT Linux Community >> И, конечно же, не забудьте в fonts.conf объявить каталог шрифтов с > Мда. Тогда, Владимир, прямо сейчас я не смогу, к сожалению > поэкспериментировать - надо почитать, поскольку из Вашего последнего > письма я понял, что много третьих факторов. Нет ничего страшного... Поищите тут в рассылке мои письма - я пару раз подробно описывал пошагово установку ttf-шрифтов со стороны.. Это и есть "третий фактор".. > А есть ли способ попроще, через userChrome.css? Ведь на сайте > декларируется, что мол, поправте, как вам надо и всё. По-другому подсказать не могу, увы... Я сразу при инсталляции ОС решаю эту проблему раз и навсегда глобально для абсолютного большинства программ (кроме, может быть tcl/tk, но и тут мне удалось раскопать, откуда ноги растут и частично заменить все verdana).. Главное, вам нужно корректно установить Тахому, прописывание пути к ней в fonts.conf, потом прописывание алиасов всего этого либо в fonts.conf, либо в alt-post-user.conf, далее просто сделать fc-cache -f.. просто userChrome.css такая штука, что вы замучаетесь искать и описывать каждый кусочек этого броузера.. UserChrome хорош немного для другого, не для шрифтов, а для некоторого изменения внешнего вида путем изменения других деталей интерфейса - получается интересно, но тут нужно четко знать, что и как называется, иначе писать что-либо в userChrome будет проблематично.. Мой же "способ" - есть ничто иное, как неотъемлимая часть самых первых настроек, следующих после установки ОС с графической оболочкой.. Удачи! -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Shrift menu v Firefox 2006-07-15 7:59 ` Владимир Гусев @ 2006-07-15 18:40 ` ALT Linux User 0 siblings, 0 replies; 7+ messages in thread From: ALT Linux User @ 2006-07-15 18:40 UTC (permalink / raw) To: ALT Linux Community > Мой же "способ" - есть ничто иное, как неотъемлимая часть самых первых > настроек, следующих после установки ОС с графической оболочкой.. В силу неведения, проскочил эту исключительно важную фазу. Много было неизвестных факторов и другого, откровенно неработающего, - было не до красивостей. Теперь, по мере привыкания к системе, всё и вылазит. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-15 18:40 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-07-14 21:09 [Comm] Shrift menu v Firefox ALT Linux User 2006-07-14 21:51 ` Владимир Гусев 2006-07-14 21:58 ` ALT Linux User 2006-07-14 22:15 ` Владимир Гусев 2006-07-14 23:42 ` ALT Linux User 2006-07-15 7:59 ` Владимир Гусев 2006-07-15 18:40 ` ALT Linux User
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