code: public static void styleRun(XWPFRun run, Style style) {
          if (null == run || null == style) return;
          String color = style.getColor();
          String fontFamily = style.getFontFamily();
          int fontSize = style.getFontSize();
          Boolean bold = style.isBold();
          Boolean italic = style.isItalic();
          Boolean strike = style.isStrike();
          Boolean underLine = style.isUnderLine();
          if (StringUtils.isNotBlank(color)) run.setColor(color);
          if (0 != fontSize) run.setFontSize(fontSize);
          if (StringUtils.isNotBlank(fontFamily)) {
              run.setFontFamily(fontFamily);
              CTRPr pr = run.getCTR().isSetRPr() ? run.getCTR().getRPr() : run.getCTR().addNewRPr();
              CTFonts fonts = pr.isSetRFonts() ? pr.getRFonts() : pr.addNewRFonts();
              fonts.setAscii(fontFamily);
              fonts.setHAnsi(fontFamily);
              fonts.setCs(fontFamily);
              fonts.setEastAsia(fontFamily);
          }
          if (null != bold) run.setBold(bold);
          if (null != italic) run.setItalic(italic);
          if (null != strike) run.setStrikeThrough(strike);
          if (Boolean.TRUE.equals(underLine)){
              run.setUnderline(UnderlinePatterns.SINGLE);
          }
      }
docs: 设置run的样式
  
  @param run
  @param style