{
Frame frame;
Instance instance;
AlphaColor fill_color = new AlphaColor(font_.getColor().getRed(), font_.getColor().getGreen(), font_.getColor().getBlue(), font_.getColor().getAlpha());
GlyphVector glyphs = font_.getAWTFont().layoutGlyphVector(DrawSWFFont.CONTEXT, font_.getText().toCharArray(), 0, font_.getText().length(), Font.LAYOUT_LEFT_TO_RIGHT);
Shape shape;
for (int char_index = 0; char_index < glyphs.getNumGlyphs(); char_index++)
{
if (font_.getText().charAt(char_index) != ' ')
{
shape = new Shape();
shape.defineFillStyle(fill_color);
shape.setRightFillStyle(1);
shape.drawAWTPathIterator(glyphs.getGlyphOutline(char_index).getPathIterator(null));
double width = glyphs.getGlyphOutline(char_index).getBounds2D().getX() + glyphs.getGlyphOutline(char_index).getBounds2D().getWidth() / 2.0;
double height = glyphs.getLogicalBounds().getHeight() / 2.0;
double center_x = position_.getX() + width;
double center_y = position_.getY() - height;