Stuart ONE

          我有一頭小毛驢,我從來也不騎……

           

          2006年3月25日

          Using anti-alias

          set anti-alias for graphics:
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
          RenderingHints.VALUE_ANTIALIAS_ON);


          set anti-alias for components:
          // Making a JTextArea use anti-Alias fonts
          // only works in JDK 1.5+
          jtextArea.putClientProperty(
          com.sun.java.swing.SwingUtilities2.AA_TEXT_PROPERTY_KEY,
          Boolean.TRUE ); 

          posted @ 2006-06-25 21:28 Stuart 閱讀(400) | 評論 (0)編輯 收藏

          刪除某路徑下所有某后綴名的文件

          ??? $? find . -name \*.NAME -exec rm '{}' \;

          posted @ 2006-04-12 13:04 Stuart 閱讀(307) | 評論 (0)編輯 收藏

          mysql backup & restore command, AS IF..... -_-#

          Backup:
          mysqldump?-u?USERNAME?-p?DBNAME?>?OUTPUT.dump

          Restroe:
          mysql?-u?USERNAME?-p DBNAME <?OUTPUT.dump


          posted @ 2006-03-27 16:46 Stuart 閱讀(290) | 評論 (0)編輯 收藏

          The vista fonts

          I added the vista fonts into my laptop, i like the corbel font, and the numbers are cute:-)

          Here's the steps:(In fact im still quite confused abt the setting fonts in debian...#*(&%#$...and i think these steps isn't the right way although it works)

          1. put the vista fonts in a folder and put the folder into /usr/share/fonts/truetype/
          2. add these in the ~/.fonts.conf
          <match?target="font">
          ???
          <test?name="family">
          ???
          <string>Calibri</string>
          ???
          <string>Cambria</string>
          ???
          <string>Candara</string>
          ???
          <string>Consolas</string>
          ???
          <string>Constantia</string>
          ???
          <string>Corbel</string>
          ???
          </test>
          ?
          <edit?name="autohint">
          ???????
          <bool>true</bool>
          ???
          </edit>
          </match>
          3.now u can choose ur fonts in the gnome.....

          PS: for step 1, i think put the vista folder in the ~/.fonts/ directory is ok too....(i never tried)

          posted @ 2006-03-25 12:09 Stuart 閱讀(247) | 評論 (0)編輯 收藏

          導(dǎo)航

          統(tǒng)計(jì)

          公告

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          BlogRoll

          Tech websites

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 罗城| 任丘市| 成安县| 黑龙江省| 兴隆县| 京山县| 北川| 外汇| 吴江市| 商水县| 兴山县| 内丘县| 长岭县| 扬州市| 南江县| 安陆市| 浮山县| 平乡县| 循化| 铁岭县| 忻州市| 容城县| 易门县| 巴彦淖尔市| 雷波县| 广东省| 岢岚县| 江津市| 扎赉特旗| 威宁| 苍梧县| 门头沟区| 安仁县| 民丰县| 莲花县| 万载县| 阿拉尔市| 土默特左旗| 柳江县| 金川县| 资中县|