public void setFontType(@JdkConstants.FontStyle int type) {
    if (type < 0 || type > 3) {
      LOG.error("Wrong font type: " + type);
      type = Font.PLAIN;
    }
    attrs = attrs.withFontType(type);
  }
public void setFontType(@JdkConstants.FontStyle int type)