ivaneeo's blog

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

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
          kanru 是我國臺灣地區(qū)著名的 Debian 黑客

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

          想要嘗鮮的人可以加入以下到 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 偵測到已經(jīng)開啟模擬粗體
          更新 libfreetype6 與 libxft2 後重新啟動 X 便能體驗到久違的粗體 眨眨眼

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

          相關(guān)網(wǎng)址:
          freetype maillist 討論串
          http://lists.gnu.org/archive/html/f...5/msg00019.html
          (Firefly) freetype已經(jīng)接受粗體補?。?br> 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(shè)定啟用模擬粗體的,是 Debian 預(yù)設(shè)安裝,沒改過 fonts.conf 的人應(yīng)該不用再改
          posted on 2005-08-05 15:23 ivaneeo 閱讀(1165) 評論(1)  編輯  收藏 所屬分類: debian-企鵝中最像牛

          Feedback

          # sy 2009-07-24 18:56
          SY  回復(fù)  更多評論
            

          主站蜘蛛池模板: 孝感市| 昌图县| 友谊县| 秦皇岛市| 惠东县| 武强县| 镇安县| 清新县| 扎兰屯市| 思南县| 鄢陵县| 永胜县| 芦山县| 汉阴县| 广元市| 衡阳县| 镇雄县| 青岛市| 郧西县| 无为县| 红桥区| 千阳县| 湖北省| 永春县| 双江| 永平县| 开原市| 吉隆县| 民权县| 孟村| 赫章县| 霍州市| 乐山市| 安丘市| 天水市| 永康市| 闽清县| 澄迈县| 汉阴县| 博客| 馆陶县|