ivaneeo's blog

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

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

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

          想要嘗鮮的人可以加入以下到 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 後重新啟動(dòng) X 便能體驗(yàn)到久違的粗體 眨眨眼

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

          相關(guān)網(wǎng)址:
          freetype maillist 討論串
          http://lists.gnu.org/archive/html/f...5/msg00019.html
          (Firefly) freetype已經(jīng)接受粗體補(bǔ)丁?
          http://firefly.idv.tw/test/Forum.ph...=view&History=0


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

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

          引用:
          作者: kanru
          補(bǔ)充一下
          如果您有修改過 /etc/fonts/fonts.conf
          請(qǐng)檢查有沒有這幾行
          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) 評(píng)論(1)  編輯  收藏 所屬分類: debian-企鵝中最像牛

          Feedback

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

          主站蜘蛛池模板: 田阳县| 岳西县| 棋牌| 库车县| 富川| 德庆县| 高唐县| 崇文区| 周宁县| 宣恩县| 盈江县| 循化| 青河县| 永定县| 仙桃市| 镇雄县| 刚察县| 英吉沙县| 岗巴县| 永登县| 武隆县| 合山市| 赤峰市| 永清县| 壤塘县| 太康县| 景宁| 兴仁县| 桃江县| 游戏| 阳谷县| 宕昌县| 嘉祥县| 阿坝县| 盐山县| 五大连池市| 犍为县| 东丰县| 淄博市| 莲花县| 江阴市|