Question

Is there a simple library that can parse a True Type font file and give me a list of vectors/points for me to render it myself? I'm talking about something similar to freetype, but for Java.

Was it helpful?

Solution

Java can do that out of the box. Some time ago, I explored this field.

I used Processing for easy/fast graphic rendering, but the code to access font information is pure Java. So maybe my little program can be of interest for you. I just pasted it in Pastebin

OTHER TIPS

You can use Batik to parse a TrueType Font and generate an SVG file (SVGFont). So I bet that you could use the libraries to get your vectors out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top