首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。 <br><br>PicFont:在另一个系统显示字库,可...

FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。 <br><br>PicFont:在另一个系统显示字库,可...

  • 资源大小:11.72 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: J2ME java

资 源 简 介

FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。

PicFont:在另一个系统显示字库,可以将上面导出的文本,用同样的字体和大小显示出来。

使用的时候,先用 FontExporter 将图片字库导出,eg.
java util.loc.FontExporter 宋体 12 text.xml 0 FL12

然后在J2ME工程里面加入 PicFont.java,Lib.java,DataReader.java,创建PicFont对象,载入图片字用PicFont对象的 load()方法。画图片字用drawChar()方法。

目前图片字支持各种字体,大小是1~32像素,渐变、阴影特效。-FontExporter: the specified file contains the text, using the specified font and font size of export.

PicFont: show the font in another system, you can export the text above with the same font and size displayed.

Use when FontExporter will first export the picture font, eg.
java util.loc.FontExporter Song 12 text.xml 0 FL12

Then add it in the J2ME project PicFont.java, Lib.java, DataReader.java, create PicFont object, load the word picture PicFont object using load () method. Draw pictures with words drawChar () method.

文 件 列 表

FontExporter
export.bat
picfont.jar
sample.xml
src.7z
VIP VIP
0.188622s