code: protected FontStyle getFontStyle(byte[] data, int offset, Map<Integer, FontBase> fontBases)
     {
        Integer index = Integer.valueOf(MPPUtility.getByte(data, offset));
        FontBase fontBase = fontBases.get(index);
        int style = MPPUtility.getByte(data, offset + 1);
        ColorType color = ColorType.getInstance(MPPUtility.getByte(data, offset + 2));
  
        boolean bold = ((style & 0x01) != 0);
        boolean italic = ((style & 0x02) != 0);
        boolean underline = ((style & 0x04) != 0);
  
        FontStyle fontStyle = new FontStyle(fontBase, italic, bold, underline, false, color.getColor(), null, BackgroundPattern.SOLID);
        //System.out.println(fontStyle);
        return fontStyle;
     }
docs: Retrieve font details from a block of property data.
  
  @param data property data
  @param offset offset into property data
  @param fontBases map of font bases
  @return FontStyle instance