// double sidebearing = 0;
// write the binary charstring to a buffer
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
CharstringEncoder charString = (HEX_ENC_CHARSTRINGS ? new CharstringEncoder(
new EEXECEncryption(new ASCIIHexOutputStream(bytes),
EEXECEncryption.CHARSTRING_R))
: new CharstringEncoder(new EEXECEncryption(bytes,
EEXECEncryption.CHARSTRING_R)));
charString.startChar(sidebearing, (glyphMetrics != null ? glyphMetrics
.getAdvance() : getUndefinedWidth())); // bounds.getWidth());
charString.drawPath(glyph);