code: @Override
      public void setCssText(final String cssText) throws DOMException {
          try {
              final CSSOMParser parser = new CSSOMParser();
              final AbstractCSSRuleImpl r = parser.parseRule(cssText);
  
              // The rule must be a font face rule
              if (r instanceof CSSFontFaceRuleImpl) {
                  style_ = ((CSSFontFaceRuleImpl) r).style_;
              }
              else {
                  throw new DOMExceptionImpl(
                      DOMException.INVALID_MODIFICATION_ERR,
                      DOMExceptionImpl.EXPECTING_FONT_FACE_RULE);
              }
          }
          catch (final CSSException e) {
              throw new DOMExceptionImpl(
                  DOMException.SYNTAX_ERR,
                  DOMExceptionImpl.SYNTAX_ERROR,
                  e.getMessage());
          }
          catch (final IOException e) {
              throw new DOMExceptionImpl(
                  DOMException.SYNTAX_ERR,
                  DOMExceptionImpl.SYNTAX_ERROR,
                  e.getMessage());
          }
      }
docs: {@inheritDoc}