code: public void setTextRendering(String value) {
          if (!value.equals("auto") && !value.equals("optimizeSpeed") 
                  && !value.equals("optimizeLegibility") 
                  && !value.equals("geometricPrecision")) {
              throw new IllegalArgumentException("Unrecognised value: " + value);
          }
          this.textRendering = value;
      }
docs: Sets the value of the 'text-rendering' property that will be written to
  the SVG element.  Permitted values are "auto", "optimizeSpeed",
  "optimizeLegibility" and "geometricPrecision".
  
  @param value  the new value.
  
  @since 2.0