code: public static void styleRpr(CTParaRPr pr, Style fmtStyle) {
          if (null == pr || null == fmtStyle) return;
          if (StringUtils.isNotBlank(fmtStyle.getColor())) {
              CTColor color = pr.isSetColor() ? pr.getColor() : pr.addNewColor();
              color.setVal(fmtStyle.getColor());
          }
  
          if (null != fmtStyle.isItalic()) {
              CTOnOff italic = pr.isSetI() ? pr.getI() : pr.addNewI();
              italic.setVal(fmtStyle.isItalic() ? STOnOff.TRUE : STOnOff.FALSE);
          }
  
          if (null != fmtStyle.isBold()) {
              CTOnOff bold = pr.isSetB() ? pr.getB() : pr.addNewB();
              bold.setVal(fmtStyle.isBold() ? STOnOff.TRUE : STOnOff.FALSE);
          }
  
          if (0 != fmtStyle.getFontSize()) {
              BigInteger bint = new BigInteger("" + fmtStyle.getFontSize());
              CTHpsMeasure ctSize = pr.isSetSz() ? pr.getSz() : pr.addNewSz();
              ctSize.setVal(bint.multiply(new BigInteger("2")));
          }
  
          if (null != fmtStyle.isStrike()) {
              CTOnOff strike = pr.isSetStrike() ? pr.getStrike() : pr.addNewStrike();
              strike.setVal(fmtStyle.isStrike() ? STOnOff.TRUE : STOnOff.FALSE);
          }
  
          if (StringUtils.isNotBlank(fmtStyle.getFontFamily())) {
              CTFonts fonts = pr.isSetRFonts() ? pr.getRFonts() : pr.addNewRFonts();
              String fontFamily = fmtStyle.getFontFamily();
              fonts.setAscii(fontFamily);
              if (!fonts.isSetHAnsi()) {
                  fonts.setHAnsi(fontFamily);
              }
              if (!fonts.isSetCs()) {
                  fonts.setCs(fontFamily);
              }
              if (!fonts.isSetEastAsia()) {
                  fonts.setEastAsia(fontFamily);
              }
          }
      }
docs: 设置w:rPr的样式
  
  @param pr
  @param fmtStyle