个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Gtk1Fonts}} {{Languages|UbuntuHelp:Gtk1Fonts}} To change the gtk1 fonts (i.e. xmms) do the following: Create a file ~/.gtkrc containing the line ...)
 
 
(未显示同一用户的2个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:Gtk1Fonts}}
 
{{Languages|UbuntuHelp:Gtk1Fonts}}
 
To change the gtk1 fonts (i.e. xmms) do the following:
 
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:
 
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)
 
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 17:01的最新版本

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)