LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 810|回复: 12

安装2007试用版后,中文字体都变楷体

[复制链接]
发表于 2006-11-20 16:51:43 | 显示全部楼层 |阅读模式
http://forum.evermoresw.com/view ... &extra=page%3D1


对suse字体配置文件不是很懂,请教一下,怎么修改阿
kde桌面
发表于 2006-11-21 00:43:02 | 显示全部楼层
我的是 sles-10 没有装 office ..
我用 vi 或者 gedit 就可以了。
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 10:00:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 10:06:06 | 显示全部楼层
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/fonts.conf file to configure system font access -->
  4. <fontconfig>

  5. <!--
  6.         DO NOT EDIT THIS FILE.
  7.         IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
  8.         LOCAL CHANGES BELONG IN 'local.conf'.

  9.         The intent of this standard configuration file is to be adequate for
  10.         most environments.  If you have a reasonably normal environment and
  11.         have found problems with this configuration, they are probably
  12.         things that others will also want fixed.  Please submit any
  13.         problems to the fontconfig bugzilla system located at fontconfig.org

  14.         Note that the normal 'make install' procedure for fontconfig is to
  15.         replace any existing fonts.conf file with the new version.  Place
  16.         any local customizations in local.conf which this file references.

  17.         Keith Packard
  18. -->

  19. <!-- Font directory list -->

  20.         <dir>/usr/share/fonts</dir>
  21.         <dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/opt/kde3/share/fonts</dir> <dir>/usr/local/share/fonts</dir>
  22.         <dir>~/.fonts</dir>
  23.         <dir>~/.fonts/kde-override</dir>

  24.         <include ignore_missing="yes">suse-font-dirs.conf</include>

  25. <!--
  26.   Accept deprecated 'mono' alias, replacing it with 'monospace'
  27. -->
  28.         <match target="pattern">
  29.                 <test qual="any" name="family">
  30.                         <string>mono</string>
  31.                 </test>
  32.                 <edit name="family" mode="assign">
  33.                         <string>monospace</string>
  34.                 </edit>
  35.         </match>

  36. <!--
  37.   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  38. -->
  39.         <match target="pattern">
  40.                 <test qual="any" name="family">
  41.                         <string>sans serif</string>
  42.                 </test>
  43.                 <edit name="family" mode="assign">
  44.                         <string>sans-serif</string>
  45.                 </edit>
  46.         </match>

  47. <!--
  48.   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  49. -->
  50.         <match target="pattern">
  51.                 <test qual="any" name="family">
  52.                         <string>sans</string>
  53.                 </test>
  54.                 <edit name="family" mode="assign">
  55.                         <string>sans-serif</string>
  56.                 </edit>
  57.         </match>

  58. <!--
  59.   Mark common families with their generics so we'll get
  60.   something reasonable
  61. -->

  62.         <include ignore_missing="yes">suse-generic-names.conf</include>

  63. <!--
  64.   Serif faces
  65. -->
  66.         <alias>
  67.                 <family>Bitstream Vera Serif</family>
  68.                 <family>Times New Roman</family>
  69.                 <family>Thorndale AMT</family>
  70.                 <family>Times</family>
  71.                 <family>Nimbus Roman No9 L</family>
  72.                 <family>Luxi Serif</family>
  73.                 <family>Kochi Mincho</family>
  74.                 <family>AR PL SungtiL GB</family>
  75.                 <family>AR PL Mingti2L Big5</family>
  76.                 <family>MS 明朝</family>
  77.                 <family>SimSun</family>
  78.                 <family>Baekmuk Batang</family>
  79.                 <family>FreeSerif</family>
  80.                 <family>MgOpen Canonica</family>
  81.                 <default><family>serif</family></default>
  82.         </alias>
  83. <!--
  84.   Sans-serif faces
  85. -->
  86.         <alias>
  87.                 <family>Bitstream Vera Sans</family>
  88.                 <family>Helvetica</family>
  89.                 <family>Arial</family>
  90.                 <family>Verdana</family>
  91.                 <family>Albany AMT</family>
  92.                 <family>Nimbus Sans L</family>
  93.                 <family>Luxi Sans</family>
  94.                 <family>Kochi Gothic</family>
  95.                 <family>AR PL KaitiM GB</family>
  96.                 <family>AR PL KaitiM Big5</family>
  97.                 <family>MS ゴシック</family>
  98.                 <family>Baekmuk Dotum</family>
  99.                 <family>FreeSans</family>
  100.                 <family>MgOpen Modata</family>
  101.                 <default><family>sans-serif</family></default>
  102.         </alias>
  103. <!--
  104.   Monospace faces
  105. -->
  106.         <alias>
  107.                 <family>Bitstream Vera Sans Mono</family>
  108.                 <family>Courier</family>
  109.                 <family>Courier New</family>
  110.                 <family>Andale Mono</family>
  111.                 <family>Luxi Mono</family>
  112.                 <family>Cumberland AMT</family>
  113.                 <family>Nimbus Mono L</family>
  114.                 <family>NSimSun</family>
  115.                 <family>FreeMono</family>
  116.                 <default><family>monospace</family></default>
  117.         </alias>
  118. <!--
  119.   If the font still has no generic name, add sans-serif
  120. -->
  121.         <match target="pattern">
  122.                 <test qual="all" name="family" compare="not_eq">
  123.                         <string>sans-serif</string>
  124.                 </test>
  125.                 <test qual="all" name="family" compare="not_eq">
  126.                         <string>serif</string>
  127.                 </test>
  128.                 <test qual="all" name="family" compare="not_eq">
  129.                         <string>monospace</string>
  130.                 </test>
  131.                 <edit name="family" mode="append_last">
  132.                         <string>sans-serif</string>
  133.                 </edit>
  134.         </match>

  135. <!--
  136.   URW provides metric and shape compatible fonts for these 3 Adobe families.
  137.   -->
  138.         <alias>
  139.           <family>Times</family>
  140.           <accept><family>Nimbus Roman No9 L</family></accept>
  141.         </alias>
  142.         <alias>
  143.           <family>Helvetica</family>
  144.           <accept><family>Nimbus Sans L</family></accept>
  145.         </alias>
  146.         <alias>
  147.           <family>Courier</family>
  148.           <accept><family>Nimbus Mono L</family></accept>
  149.         </alias>

  150. <!--
  151. AMT provides metric and shape compatible fonts for these three web font
  152. families.
  153. -->
  154.         <alias>
  155.                 <family>Times New Roman</family>
  156.                 <accept><family>Thorndale AMT</family></accept>
  157.         </alias>
  158.         <alias>
  159.                 <family>Arial</family>
  160.                 <accept><family>Albany AMT</family></accept>
  161.         </alias>
  162.         <alias>
  163.                 <family>Courier New</family>
  164.                 <accept><family>Cumberland AMT</family></accept>
  165.         </alias>

  166. <!--
  167.   Some Asian fonts misadvertise themselves as monospaced when
  168.   in fact they are dual-spaced (half and full).  This makes
  169.   FreeType very confused as it forces all widths to match.
  170.   Undo this magic by disabling the width forcing code -->
  171.         <match target="font">
  172.                 <test name="family"><string>GulimChe</string></test>
  173.                 <edit name="globaladvance"><bool>false</bool></edit>
  174.         </match>

  175.         <match target="font">
  176.                 <test name="family"><string>DotumChe</string></test>
  177.                 <edit name="globaladvance"><bool>false</bool></edit>
  178.         </match>

  179.         <match target="font">
  180.                 <test name="family"><string>BatangChe</string></test>
  181.                 <edit name="globaladvance"><bool>false</bool></edit>
  182.         </match>

  183.         <match target="font">
  184.                 <test name="family"><string>GungsuhChe</string></test>
  185.                 <edit name="globaladvance"><bool>false</bool></edit>
  186.         </match>

  187. <!--
  188.         The Bitstream Vera fonts have GASP entries suggesting that hinting be
  189.         disabled below 8 ppem, but FreeType ignores those, preferring to use
  190.         the data found in the instructed hints.  The initial Vera release
  191.         didn't include the right instructions in the 'prep' table. Fix this
  192.         by disabling hinting manually at smaller sizes (< 8ppem)
  193. -->

  194.         <match target="font">
  195.                 <test name="family">
  196.                         <string>Bitstream Vera Sans</string>
  197.                 </test>
  198.                 <test name="pixelsize" compare="less">
  199.                         <double>7.5</double>
  200.                 </test>
  201.                 <edit name="hinting">
  202.                         <bool>false</bool>
  203.                 </edit>
  204.         </match>

  205.         <match target="font">
  206.                 <test name="family">
  207.                         <string>Bitstream Vera Serif</string>
  208.                 </test>
  209.                 <test name="pixelsize" compare="less">
  210.                         <double>7.5</double>
  211.                 </test>
  212.                 <edit name="hinting">
  213.                         <bool>false</bool>
  214.                 </edit>
  215.         </match>

  216.         <match target="font">
  217.                 <test name="family">
  218.                         <string>Bitstream Vera Sans Mono</string>
  219.                 </test>
  220.                 <test name="pixelsize" compare="less">
  221.                         <double>7.5</double>
  222.                 </test>
  223.                 <edit name="hinting">
  224.                         <bool>false</bool>
  225.                 </edit>
  226.         </match>

  227. <!--
  228.   Load pre-user SuSE specific customizations:
  229. -->

  230.         <include ignore_missing="yes">suse-pre-user.conf</include>

  231. <!--
  232.   Load per-user customization file
  233. -->
  234.         <include ignore_missing="yes">~/.fonts.conf</include>

  235. <!--
  236.   Load post-user SuSE specific customizations:
  237. -->

  238.         <include ignore_missing="yes">suse-post-user.conf</include>

  239. <!--
  240.   Load local system customization file
  241. -->
  242.         <include ignore_missing="yes">conf.d</include>
  243.         <include ignore_missing="yes">local.conf</include>

  244. <!--
  245.   Provide required aliases for standard names
  246. -->
  247.         <alias>
  248.                 <family>serif</family>
  249.                 <prefer>
  250.                         <family>Bitstream Vera Serif</family>
  251.                         <family>Times New Roman</family>
  252.                         <family>Thorndale AMT</family>
  253.                         <family>Luxi Serif</family>
  254.                         <family>Nimbus Roman No9 L</family>
  255.                         <family>Times</family>
  256.                         <family>Frank Ruehl</family>
  257.                         <family>MgOpen Canonica</family>
  258.                         <family>FreeSerif</family>
  259.                         <family>Kochi Mincho</family>
  260.                         <family>AR PL SungtiL GB</family>
  261.                         <family>SimSun</family>
  262.                         <family>AR PL Mingti2L Big5</family>
  263.                         <family>MS 明朝</family>
  264.                         <family>Baekmuk Batang</family>
  265.                 </prefer>
  266.         </alias>
  267.         <alias>
  268.                 <family>sans-serif</family>
  269.                 <prefer>
  270.                         <family>Bitstream Vera Sans</family>
  271.                         <family>Verdana</family>
  272.                         <family>Arial</family>
  273.                         <family>Albany AMT</family>
  274.                         <family>Luxi Sans</family>
  275.                         <family>Nimbus Sans L</family>
  276.                         <family>Helvetica</family>
  277.                         <family>Nachlieli</family>
  278.                         <family>MgOpen Modata</family>
  279.                         <family>FreeSans</family>
  280.                         <family>Kochi Gothic</family>
  281.                         <family>AR PL KaitiM GB</family>
  282.                         <family>AR PL KaitiM Big5</family>
  283.                         <family>MS ゴシック</family>
  284.                         <family>Baekmuk Dotum</family>
  285.                 </prefer>
  286.         </alias>
  287.         <alias>
  288.                 <family>monospace</family>
  289.                 <prefer>
  290.                         <family>Bitstream Vera Sans Mono</family>
  291.                         <family>Andale Mono</family>
  292.                         <family>Courier New</family>
  293.                         <family>Cumberland AMT</family>
  294.                         <family>Luxi Mono</family>
  295.                         <family>Nimbus Mono L</family>
  296.                         <family>Courier</family>
  297.                         <family>Miriam Mono</family>
  298.                         <family>FreeMono</family>
  299.                         <family>Kochi Gothic</family>
  300.                         <family>AR PL SungtiL GB</family>
  301.                         <family>AR PL Mingti2L Big5</family>
  302.                         <family>Baekmuk Dotum</family>
  303.                 </prefer>
  304.         </alias>

  305. <!--
  306. Artificial oblique for fonts without an italic or oblique version
  307. -->

  308.         <match target="font">
  309.                 <!-- check to see if the font is roman -->
  310.                 <test name="slant">
  311.                         <const>roman</const>
  312.                 </test>
  313.                 <!-- check to see if the pattern requested non-roman -->
  314.                 <test target="pattern" name="slant" compare="not_eq">
  315.                         <const>roman</const>
  316.                 </test>
  317.                 <!-- multiply the matrix to slant the font -->
  318.                 <edit name="matrix" mode="assign">
  319.                         <times>
  320.                                 <name>matrix</name>
  321.                                 <matrix><double>1</double><double>0.2</double>
  322.                                         <double>0</double><double>1</double>
  323.                                 </matrix>
  324.                         </times>
  325.                 </edit>
  326.                 <!-- pretend the font is oblique now -->
  327.                 <edit name="slant" mode="assign">
  328.                         <const>oblique</const>
  329.                 </edit>
  330.                 <!-- and disable embedded bitmaps for artificial oblique -->
  331.                 <edit name="embeddedbitmap" mode="assign">
  332.                         <bool>false</bool>
  333.                 </edit>
  334.         </match>

  335. <!--
  336. Synthetic emboldening for fonts that do not have bold face available
  337. -->

  338.         <match target="font">
  339.                 <!-- check to see if the font is just regular -->
  340.                 <test name="weight" compare="less_eq">
  341.                         <const>medium</const>
  342.                 </test>
  343.                 <!-- check to see if the pattern requests bold -->
  344.                 <test target="pattern" name="weight" compare="more">
  345.                         <const>medium</const>
  346.                 </test>
  347.                 <!--
  348.                   set the embolden flag
  349.                   needed for applications using cairo, e.g. gucharmap, gedit, ...
  350.                 -->
  351.                 <edit name="embolden" mode="assign">
  352.                         <bool>true</bool>
  353.                 </edit>
  354.                 <!--
  355.                  set weight to bold
  356.                  needed for applications using Xft directly, e.g. Firefox, ...
  357.                 -->
  358.                 <edit name="weight" mode="assign">
  359.                         <const>bold</const>
  360.                 </edit>
  361.                 <!--
  362.                  Hinting will be done before Embolden in freetype2,
  363.                  but in such case, Embolden will get wrong result
  364.                  on some glyph contours after applying hinting.
  365.                  Actually, hinting should be done after embolden, but we can't
  366.                  fix it in current freetype2. So as a workaround, just turn off
  367.                  hinting if we want to do embolden.
  368.                 -->
  369.                 <edit name="hintstyle" mode="assign">
  370.                         <const>hintnone</const>
  371.                 </edit>
  372.         </match>


  373.         <config>
  374. <!--
  375.   These are the default Unicode chars that are expected to be blank
  376.   in fonts.  All other blank chars are assumed to be broken and
  377.   won't appear in the resulting charsets
  378. -->
  379.                 <blank>
  380.                         <int>0x0020</int>        <!-- SPACE -->
  381.                         <int>0x00A0</int>        <!-- NO-BREAK SPACE -->
  382.                         <int>0x00AD</int>        <!-- SOFT HYPHEN -->
  383.                         <int>0x034F</int>        <!-- COMBINING GRAPHEME JOINER -->
  384.                         <int>0x0600</int>        <!-- ARABIC NUMBER SIGN -->
  385.                         <int>0x0601</int>        <!-- ARABIC SIGN SANAH -->
  386.                         <int>0x0602</int>        <!-- ARABIC FOOTNOTE MARKER -->
  387.                         <int>0x0603</int>        <!-- ARABIC SIGN SAFHA -->
  388.                         <int>0x06DD</int>        <!-- ARABIC END OF AYAH -->
  389.                         <int>0x070F</int>        <!-- SYRIAC ABBREVIATION MARK -->
  390.                         <int>0x115F</int>        <!-- HANGUL CHOSEONG FILLER -->
  391.                         <int>0x1160</int>        <!-- HANGUL JUNGSEONG FILLER -->
  392.                         <int>0x1680</int>        <!-- OGHAM SPACE MARK -->
  393.                         <int>0x17B4</int>        <!-- KHMER VOWEL INHERENT AQ -->
  394.                         <int>0x17B5</int>        <!-- KHMER VOWEL INHERENT AA -->
  395.                         <int>0x180E</int>        <!-- MONGOLIAN VOWEL SEPARATOR -->
  396.                         <int>0x2000</int>        <!-- EN QUAD -->
  397.                         <int>0x2001</int>        <!-- EM QUAD -->
  398.                         <int>0x2002</int>        <!-- EN SPACE -->
  399.                         <int>0x2003</int>        <!-- EM SPACE -->
  400.                         <int>0x2004</int>        <!-- THREE-PER-EM SPACE -->
  401.                         <int>0x2005</int>        <!-- FOUR-PER-EM SPACE -->
  402.                         <int>0x2006</int>        <!-- SIX-PER-EM SPACE -->
  403.                         <int>0x2007</int>        <!-- FIGURE SPACE -->
  404.                         <int>0x2008</int>        <!-- PUNCTUATION SPACE -->
  405.                         <int>0x2009</int>        <!-- THIN SPACE -->
  406.                         <int>0x200A</int>        <!-- HAIR SPACE -->
  407.                         <int>0x200B</int>        <!-- ZERO WIDTH SPACE -->
  408.                         <int>0x200C</int>        <!-- ZERO WIDTH NON-JOINER -->
  409.                         <int>0x200D</int>        <!-- ZERO WIDTH JOINER -->
  410.                         <int>0x200E</int>        <!-- LEFT-TO-RIGHT MARK -->
  411.                         <int>0x200F</int>        <!-- RIGHT-TO-LEFT MARK -->
  412.                         <int>0x2028</int>        <!-- LINE SEPARATOR -->
  413.                         <int>0x2029</int>        <!-- PARAGRAPH SEPARATOR -->
  414.                         <int>0x202A</int>        <!-- LEFT-TO-RIGHT EMBEDDING -->
  415.                         <int>0x202B</int>        <!-- RIGHT-TO-LEFT EMBEDDING -->
  416.                         <int>0x202C</int>        <!-- POP DIRECTIONAL FORMATTING -->
  417.                         <int>0x202D</int>        <!-- LEFT-TO-RIGHT OVERRIDE -->
  418.                         <int>0x202E</int>        <!-- RIGHT-TO-LEFT OVERRIDE -->
  419.                         <int>0x202F</int>        <!-- NARROW NO-BREAK SPACE -->
  420.                         <int>0x205F</int>        <!-- MEDIUM MATHEMATICAL SPACE -->
  421.                         <int>0x2060</int>        <!-- WORD JOINER -->
  422.                         <int>0x2061</int>        <!-- FUNCTION APPLICATION -->
  423.                         <int>0x2062</int>        <!-- INVISIBLE TIMES -->
  424.                         <int>0x2063</int>        <!-- INVISIBLE SEPARATOR -->
  425.                         <int>0x206A</int>        <!-- INHIBIT SYMMETRIC SWAPPING -->
  426.                         <int>0x206B</int>        <!-- ACTIVATE SYMMETRIC SWAPPING -->
  427.                         <int>0x206C</int>        <!-- INHIBIT ARABIC FORM SHAPING -->
  428.                         <int>0x206D</int>        <!-- ACTIVATE ARABIC FORM SHAPING -->
  429.                         <int>0x206E</int>        <!-- NATIONAL DIGIT SHAPES -->
  430.                         <int>0x206F</int>        <!-- NOMINAL DIGIT SHAPES -->
  431.                         <int>0x3000</int>        <!-- IDEOGRAPHIC SPACE -->
  432.                         <int>0x3164</int>        <!-- HANGUL FILLER -->
  433.                         <int>0xFEFF</int>        <!-- ZERO WIDTH NO-BREAK SPACE -->
  434.                         <int>0xFFA0</int>        <!-- HALFWIDTH HANGUL FILLER -->
  435.                         <int>0xFFF9</int>        <!-- INTERLINEAR ANNOTATION ANCHOR -->
  436.                         <int>0xFFFA</int>        <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  437.                         <int>0xFFFB</int>        <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  438.                 </blank>
  439. <!--
  440.   Rescan configuration every 30 seconds when FcFontSetList is called
  441. -->
  442.                 <rescan>
  443.                         <int>30</int>
  444.                 </rescan>
  445.         </config>

  446. </fontconfig>
复制代码


对xml格式不是很懂,前些天看了一会xml方面的书,还是一头雾水
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 10:10:19 | 显示全部楼层
昨天我又安装了雅黑字体,kcontrol中字体设置不是雅黑,但程序的菜单栏仍然是楷体,别的都是雅黑
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 10:10:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 10:29:55 | 显示全部楼层
具体设置见附件

如此设置之后,我的程序的主菜单变成了楷体,别的都是雅黑,我也希望程序的主菜单也变成雅黑。

谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 10:35:01 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 10:38:27 | 显示全部楼层
最上面一排菜单以及他们的子菜单。。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

容易受伤的女人 该用户已被删除
发表于 2006-11-21 10:40:59 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表