How can I create a glyph bitmap for alphabet

时光总嘲笑我的痴心妄想 提交于 2019-12-11 11:06:22

问题


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 },

Thank you.


回答1:


java.awt.font.GlyphVector is a good alternative, as seen here.

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



来源:https://stackoverflow.com/questions/6038316/how-can-i-create-a-glyph-bitmap-for-alphabet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!