for (int i = 0; i < s.length(); i++) {
// get the index for the needed glyph
final char ch = s.charAt(i);
System.out.println("Getting index for char: " + ch);
final int index = encTable.getTableFormat().getGlyphIndex(ch);
final TTFGlyph glyph = (TTFGlyph) glyphTable.getGlyph(index);
final GeneralPath shape = glyph.getShape();
PathIterator pi = shape.getPathIterator(null);
final float[] f = new float[6];
while (!pi.isDone()) {
final int type = pi.currentSegment(f);
System.out.println(types[type] + ",\t(" + f[0] + "," + f[1] + "),\t(" + f[2] + "," + f[3] + "),\t(" +