ivaneeo's blog

自由的力量,自由的生活。

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
kanru 是我国台湾地区著名的 Debian 黑客

引用:
作者: kanru
有在注意 freetype 最新發展的人應該已經知道
freetype2 已經內建粗體模擬支援(cvs 版本),在 xft2 中相對應的程式碼也已經有了
所以只要更新這兩個套件便可以有基本的粗體支援 眨眨眼

想要嘗鮮的人可以加入以下到 sources.list

代码:
  deb http://people.debian.org.tw/~koster/debian/sid ./ 
deb-src http://people.debian.org.tw/~koster/debian/sid ./


其中 freetype2 的部份是今天更新的 cvs 版本,有熱呼呼的的粗體支援
xft2 是拿 debian 中的版本直接重新編譯,讓 configure 偵測到已經開啟模擬粗體
更新 libfreetype6 與 libxft2 後重新啟動 X 便能體驗到久違的粗體 眨眨眼

NOTE: 此修正是以直接修改底層的方式,與其他之前的 patch 不同
混用這些不同 patch 的套件將有不能預期的後果

相關網址:
freetype maillist 討論串
http://lists.gnu.org/archive/html/f...5/msg00019.html
(Firefly) freetype已經接受粗体補丁?
http://firefly.idv.tw/test/Forum.ph...=view&History=0


加了 apt 源后
apt-get update
apt-get install libfreetype6 libxft2

然后重启 X , 就可以看到效果了

引用:
作者: kanru
補充一下
如果您有修改過 /etc/fonts/fonts.conf
請檢查有沒有這幾行
PHP代码:
<!--
  
Synthetic emboldening for fonts that do not have bold face available
  
-->

     <
match target="font">
         <!--
check to see if the font is just regular -->
         <
test name="weight" compare="less_eq">
             <
int>100</int>
         </
test>
         <!--
check to see if the pattern requests bold -->
         <
test target="pattern" name="weight" compare="more_eq">
             <
int>200</int>
         </
test>
         <!--
set the embolden flag -->
         <
edit name="embolden" mode="assign">
             <
bool>true</bool>
         </
edit>
     </
match>

這些是用?碓O定啟用模擬粗體的,是 Debian 預設安裝,沒改過 fonts.conf 的人應該不用再改
posted on 2005-08-05 15:23 ivaneeo 阅读(1146) 评论(1)  编辑  收藏 所属分类: debian-企鹅中最像牛

Feedback

# sy 2009-07-24 18:56
SY  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: