特殊:Badtitle/NS100:Gtk1Fonts:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第4行: 第4行:
Create a file ~/.gtkrc containing the line (if it does not already exist), and replace $USER with your username:
Create a file ~/.gtkrc containing the line (if it does not already exist), and replace $USER with your username:
<pre><nowiki>
<pre><nowiki>
include "/home/$USER/.gtkrc.mine"
  include "/home/$USER/.gtkrc.mine"
</nowiki></pre>
</nowiki></pre>
Then create the referenced file (~/.gtkrc.mine) with the content:
Then create the referenced file (~/.gtkrc.mine) with the content:
<pre><nowiki>
<pre><nowiki>
style "user-font"
  style "user-font"
{
  {
fontset="-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1"
    fontset="-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1"
}
  }
widget_class "*" style "user-font"
 
  widget_class "*" style "user-font"
</nowiki></pre>
</nowiki></pre>
(Replace the font as you like, you can test fonts of this format with xfontsel run from a terminal)
(Replace the font as you like, you can test fonts of this format with xfontsel run from a terminal)

2007年12月6日 (四) 10:34的版本

{{#ifexist: :Gtk1Fonts/zh | | {{#ifexist: Gtk1Fonts/zh | | {{#ifeq: {{#titleparts:Gtk1Fonts|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Gtk1Fonts|1|-1|}} | zh | | }}

To change the gtk1 fonts (i.e. xmms) do the following: Create a file ~/.gtkrc containing the line (if it does not already exist), and replace $USER with your username:

  include "/home/$USER/.gtkrc.mine"

Then create the referenced file (~/.gtkrc.mine) with the content:

  style "user-font"
   {
    fontset="-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1"
   }

  widget_class "*" style "user-font"

(Replace the font as you like, you can test fonts of this format with xfontsel run from a terminal)