Is there any java library that can be used to extract each character from a true type font (.ttf)?
Each character of the font, I want to:
- Convert it to the image
- Extract its code (ex: Unicode value)
Anyone can help to show me some tips on above purpose?
P.S: I want to figure out, how such this app made: http://www.softpedia.com/progScreenshots/CharMap-Screenshot-94863.html
This will convert a
String
to aBufferedImage
:I think there isn't a way to get all the characters, you have to create a
String
or achar
array where you store all the chars you want to convert to image.Once you have the
String
orchar[]
with all keys you want to convert, you can easily iterate over it and convert call thestringToBufferedImage
method, then you can doif
charactersMap
is aString
, orif
charactersMap
is achar
arrayHope this helps