public static Font selectFontForCharactersInText(CharSequence charSeq,
int firstIndex, int breakIndex, FOText text,
PercentBaseContext context) {
final FontInfo fi = text.getFOEventHandler().getFontInfo();
final CommonFont commonFont = text.getCommonFont();
final FontTriplet[] fontkeys = commonFont.getFontState(fi);
final int numFonts = fontkeys.length;
final Font[] fonts = new Font[numFonts];
final int[] fontCount = new int[numFonts];
for (int fontnum = 0; fontnum < numFonts; fontnum++) {