引言: 1. 原因JDK需要从字体配置文件中读取字体列表,而默认的字体列表并无中文字体。
摘要:string str=textbox2.text ; // datagrid1.datasource =directory.getfiles (str); datagrid1.datasource =directory.getfiles (str,"*.aspx");//获取目录下.aspx后缀的文件列表 datagrid1.databind ();
......
摘要:http://snowyvalley.blogchina.com/blog/article_33458.192098.html
......
Linux下让JDK支持中文1. 原因jdk需要从字体配置文件中读取字体列表,而默认的字体列表并无中文字体. 【程序编程相关:
开放源码-SMTP发信客户端 for J】 【推荐阅读:
PowerDesigner 11的感受】 【扩展信息:
极限编程中的简单设计原则】 2. 解决方法 为jdk的字体配置文件添加中文字体 3. 操作步骤 3.1. 复制字体文件到jdk的字体目录
cd /usr/local/java/jre/lib/fonts cp /usr/share/fonts/zh_cn/truetype/gbsn00l.ttf .
3.2. 生成字体列表文件
ttmkfdir -o fonts.dir
3.3. 查看新生成的fonts.dir文件,查看有关gbsn00l.ttf的部分
vi fonts.dir
3.4. 应该在文件的最后一行
-arphic technology co.-ar pl sungtil gb-medium-r-normal--0-0-0-0-p-0-ascii-0
3.5. 回到上一层目录,将gbsn00lp.ttf加入font.properties
cd .. vi font.properties
3.6. 添加方法: 3.6.1 首先将3.4中看到的那一行文字复制出来,将其中的 0-0-0-0-p-0 改为 *-%d-*-*-p-* 目的是让字体能够按比例缩放,现在成为:
-arphic technology co.-ar pl sungtil gb-medium-r-normal--*-%d-*-*-p-*-ascii-0
...
下一页 摘要:
使用 ant 让你愉快编程(3)
摘要: build.xml, build.properties
2. 介绍 build.xml, build.properties
. 以下为 build.xml 文件内容.
<?xml version="1.0" encoding="iso-8859-1"?>
&l......