tab.setNoStroke(true);
characters.add(tab);
//Create a new SVG-FONT
// VectorFont svgFont = new VectorFont(this.getCharacters(), fontDefaultXAdvancing, fontFamily, fontMaxAscent, fontMaxDescent, font_units_per_em, fontSize,
VectorFont svgFont = new VectorFont((VectorFontCharacter[])characters.toArray(new VectorFontCharacter[characters.size()]), fontDefaultXAdvancing, fontFamily, fontMaxAscent, fontMaxDescent, font_units_per_em, fontSize,
fillColor,
strokeColor,
antiAliased
);
//TODO this caused performance problems - reason UNKOWN! DISABLE IF PERFORMANCE DROPS SIGNIFICANTLY!
//Set font max descent and ascent according to font size
// float tmp = fontMaxAscent * (float)(1.0/(float)font_units_per_em);
// fontMaxAscent = Math.round(tmp * fontSize);
// float tmp2 = fontMaxDescent * (float)(1.0/(float)font_units_per_em);
// fontMaxDescent = Math.round(tmp2 * fontSize);
fontMaxAscent = Math.round(fontMaxAscent * this.scaleFactor);
fontMaxDescent = Math.round(fontMaxDescent * this.scaleFactor);
svgFont.setFontMaxAscent(fontMaxAscent);
svgFont.setFontMaxDescent(fontMaxDescent);
svgFont.setFontId(fontID);
this.svgFont = svgFont;
// pathVertexArrays.clear();
// vertexArrToOutlinesList.clear();