个人工具

“UbuntuHelp:Gtk1Fonts”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第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的版本

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)