if (nextText instanceof FSText) {
FSText ft = (FSText) nextText;
ArrayList chars = ft.getCharacters();
Iterator charIt = chars.iterator();
while (charIt.hasNext()) {
FSCharacter fsChar = (FSCharacter) charIt.next();
sb.append((char) fsChar.getGlyphIndex());
}
sb.append(' ');
}
}
}