如何为字母创建字形位图 [英] How can I create a glyph bitmap for alphabet

查看:96
本文介绍了如何为字母创建字形位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种允许我为字母创建字形位图的方法. 例如,我为字母"0"创建了以下内容,但我想知道是否有更简单的方法为字母"a-z"和"A-Z"创建字形位图?

I am looking for a way which allows me to create glyph bitmap for alphabet. For example, I create the following for the letter '0', but i am wondering if there is a simpler way for me to create glyph bitmap for alphabet 'a-z' and 'A-Z'?

        { 1, 1, 1, 1 },
        { 1, 0, 0, 1 },
        { 1, 0, 0, 1 },
        { 1, 0, 0, 1 },
        { 1, 0, 0, 1 },
        { 1, 0, 0, 1 },
        { 1, 1, 1, 1 },

谢谢.

推荐答案

java.awt.font.GlyphVector 是一个很好的选择,如此处.

附录:在

Addendum: Once a glyph's outline has been rendered in a BufferedImage, the corresponding WritableRaster becomes accessible.

这篇关于如何为字母创建字形位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆