LinuxSir.cn,穿越时空的Linuxsir!

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

不是说现在的gentoo不用打补丁也有粗体了吗?可是我没有

[复制链接]
发表于 2006-4-5 18:39:50 | 显示全部楼层 |阅读模式
前两天我重新装了gentoo, 在这之前我的gnome是有粗体的,我也没有打任何的补丁,都是官方的 ebuild.可是重新装了之后怎么没有了呢 (portage已经是最新的了.)?
而且我已经按照
http://www.linuxsir.cn/bbs/showthread.php?t=248828
对我的font.conf进行了修改,可是还是没有粗体. 请问各位这是为什么?
发表于 2006-4-5 19:25:34 | 显示全部楼层
不知道……用x11r7应该都会有的……
回复 支持 反对

使用道具 举报

发表于 2006-4-5 19:52:30 | 显示全部楼层
freetype-2.1.10

fonts.conf里那个200改成180
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-5 21:25:10 | 显示全部楼层
改了呀,没有用的.而且现在我已经是xorg 7 了, 我也用的是freetype-2.1.10
回复 支持 反对

使用道具 举报

发表于 2006-4-5 21:34:48 | 显示全部楼层
贴个图看看呢
firefox上论坛有粗体么
回复 支持 反对

使用道具 举报

发表于 2006-4-5 23:57:02 | 显示全部楼层
给楼主参考一下我的.fonts.conf, 楼主酌情修改吧

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4.   <!-- better no trailing slash -->
  5.   <dir>/hoard/fonts/fonts.using</dir>

  6.   <!--
  7.       ****************************************************************
  8.       the default fonts.conf shipped recognize simsun as sans family,
  9.       while in fact it is of the serif family.
  10.       ****************************************************************
  11.     -->
  12.   <match target="pattern">
  13.     <!-- check to see if simsun is among the family list -->
  14.     <test name="family" qual="any" compare="contains">
  15.       <string>SimSun</string>
  16.     </test>
  17.     <!-- if so, locate the 'sans-serif' inserted by fonts.conf -->
  18.     <test name="family" qual="any" compare="eq">
  19.       <string>sans-serif</string>
  20.     </test>
  21.     <!-- now replace the located 'sans-serif' with 'serif' -->
  22.     <edit name="family" mode="assign">
  23.       <string>serif</string>
  24.     </edit>
  25.   </match>

  26.   <!--
  27.        ****************************************************************
  28.        I don't like arphic fonts. so remove any relavent request
  29.        ****************************************************************
  30.     -->
  31.   <!-- replace arphic serifs with simsun -->
  32.   <match target="pattern">
  33.     <test name="family" qual="any" compare="contains">
  34.       <string>AR PL SungtiL GB</string>
  35.       <string>AR PL Mingti2L Big5</string>
  36.     </test>
  37.     <edit name="family" mode="assign">
  38.       <string>SimSun</string>
  39.     </edit>
  40.   </match>

  41.   <!-- replace arphic sans with Yuanti -->
  42.   <match target="pattern">
  43.     <test name="family" qual="any" compare="contains">
  44.       <string>AR PL KaitiM GB</string>
  45.       <string>AR PL KaitiM Big5</string>
  46.     </test>
  47.     <edit name="family" mode="assign">
  48.       <string>Vera Sans YuanTi</string>
  49.     </edit>
  50.   </match>
  51.   <!--
  52.       ****************************************************************
  53.       Since the system adds the prefer list after reading user conf,
  54.       we'll have to choose our own prefer list so that ours are
  55.       inserted before the system's
  56.       
  57.       The rationale for the prefer list:
  58.       
  59.       that some beautiful opensource english fonts shall go first,
  60.       then go micro$oft corefonts, then chinese fonts.
  61.       ****************************************************************
  62.     -->
  63.   <!-- serif -->
  64.   <alias>
  65.     <family>serif</family>
  66.     <prefer>
  67.       <!-- open source first -->
  68.       <family>Bitstream Vera Serif</family>
  69.       <!-- m$ fonts -->
  70.       <family>Times New Roman</family>
  71.       <!-- now chinese fonts -->
  72.       <family>SimSun</family>
  73.     </prefer>
  74.   </alias>
  75.   <!-- sans -->
  76.   <alias>
  77.     <family>sans-serif</family>
  78.     <prefer>
  79.       <!-- oss fonts -->
  80.       <family>Bitstream Vera Sans</family>
  81.       <!-- m$ fonts -->
  82.       <family>Verdana</family>
  83.       <family>Arial</family>
  84.       <!-- chinese fonts -->
  85.       <family>Vera Sans YuanTi</family>
  86.       <!-- fall back to serif in case yuanti doesnt cover certain
  87.       chars -->
  88.       <family>SimSun</family>
  89.     </prefer>
  90.   </alias>
  91.   <!-- mono -->
  92.   <alias>
  93.     <family>monospace</family>
  94.     <prefer>
  95.       <family>Bitstream Vera Sans Mono</family>
  96.       <!-- m$ -->
  97.       <family>Andale Mono</family>
  98.       <family>Courier New</family>
  99.       <!-- chs -->
  100.       <family>Vera Sans YuanTi Mono</family>
  101.       <family>NSimSun</family>
  102.     </prefer>
  103.   </alias>
  104.   <!--
  105.       ****************************************************************
  106.       where appropriate, we use wqy's song since its latin chars are
  107.       more appealing
  108.       ****************************************************************
  109.     -->
  110.   <match target="pattern">
  111.     <test name="family"><string>SimSun</string></test>
  112.     <test qual="all" name="pixelsize" compare="more_eq">
  113.       <double>12</double>
  114.     </test>
  115.     <test qual="all" name="pixelsize" compare="less_eq">
  116.       <double>18</double>
  117.     </test>
  118.     <edit name="family" mode="prepend">
  119.       <string>WenQuanYi Bitmap Song</string>
  120.     </edit>
  121.   </match>

  122.   <!--
  123.       ****************************************************************
  124.       the globaladvance thing. see corresponding part in the default
  125.       fonts.conf
  126.       ****************************************************************
  127.     -->
  128.   <match target="font">
  129.     <test name="family" compare="contains">
  130.       <string>SimSun</string>
  131.       <string>WenQuanYi</string>
  132.       <string>YuanTi</string>
  133.       <!-- add more fonts here -->
  134.     </test>
  135.     <edit name="globaladvance"><bool>false</bool></edit>
  136.   </match>
  137.   
  138.   <!--
  139.       ****************************************************************
  140.       synthetic emboldening. The corresponding part in fonts.conf
  141.       almost never works, since it seems when the 'embolden' flag was
  142.       on, libXft needs "weight" as a parameter: the "weight" as to
  143.       "embolden" is like "matrix" as to "slant" flag in artificial
  144.       oblique. After all, libXft had to know something about to which
  145.       extent the emboldening should be applied.
  146.       ****************************************************************
  147. -->
  148.    <match target="font">
  149.      <test target="pattern" name="weight" compare="more_eq">
  150.        <int>180</int></test>
  151.      <!-- the following test on returned weight won't work in the case
  152.          that we conditionally substitute simsun with wqy. Take
  153.          linuxsir as an example, when text size is set to the wqy
  154.          regime, the font itself has a bold face, and thus bypasses
  155.          the test. when the size is enlarged, at least in firefox
  156.          simsun doesn't get emboldened. but when the test is on
  157.          "style", all seems working
  158.          
  159.          <test name="weight" compare="less"><int>200</int></test>
  160.      -->
  161.      <test name="style" compare="contains">
  162.        <string>regular</string></test>
  163.      <!-- set the embolden flag -->
  164.      <edit name="embolden" mode="assign">
  165.        <bool>true</bool>
  166.      </edit>
  167.      <!-- the part that fonts.conf missed -->
  168.      <edit name="weight" mode="assign">
  169.        <!-- unfortunately, we have no way to know what is the weight
  170.        in the pattern requested, so we have to compose one on
  171.        ourselves -->
  172.        <int>200</int>
  173.      </edit>
  174.      <!-- and if you want to be a gentleman, also set the "style" to
  175.      "bold" -->
  176.      <!--
  177.      <edit name="style" mode="assign">
  178.        <const>bold</const>
  179.      </edit>
  180.      -->
  181.    </match>

  182.    <!-- disable AA of chinese fonts from 12 to 18-->
  183.    <match target="font">
  184.      <test name="lang" compare="contains">
  185.        <string>zh</string></test>
  186.      <test name="pixelsize" compare="more_eq">
  187.        <double>12</double></test>
  188.      <test name="pixelsize" compare="less_eq">
  189.        <double>18</double></test>
  190.      <edit name="antialias"><bool>false</bool></edit>
  191.      <edit name="hinting"><bool>true</bool></edit>
  192.    </match>
  193. </fontconfig>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-6 12:02:47 | 显示全部楼层
我现在还不能screenshot,好像有个包没有装,只要我一按printscreen那个键,就有个error说
can't execute gnome-screeshot process (顺便问一下, 这个printscreen在哪个包里呢?).

另外, firefox也是没有粗体的,只是英文有粗体.
to galilette:
多谢,我现在试试
回复 支持 反对

使用道具 举报

发表于 2006-4-6 12:20:05 | 显示全部楼层
你用scrot截图就完了……
回复 支持 反对

使用道具 举报

发表于 2006-4-6 15:53:35 | 显示全部楼层
给楼主点信心. 12-18号simsun我用文泉驿的bitmap字体, 再大的就用simsun
回复 支持 反对

使用道具 举报

发表于 2006-4-6 16:42:23 | 显示全部楼层
用文泉驿,遇上了麻烦,不知道各位可有同难

(gnome-window-decorator:13804): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'WenQuanYi Bitmap Song Bold 13'
回复 支持 反对

使用道具 举报

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

本版积分规则

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