text: public short getFontAtIndex( int index ) {int size = _string.getFormatRunCount();FormatRun currentRun = null;for (int i=0;i<size;i++) {FormatRun r = _string.getFormatRun(i);if (r.getCharacterPos() > index) {break;}currentRun = r;}if (currentRun == null) {return NO_FONT;}return currentRun.getFontIndex();}