/// <summary>
 /// Writes the attribute.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="value">The value.</param>
 /// <param name="defaultValue">The default value.</param>
 protected void WriteAttribute(string name, FontStyle value, FontStyle defaultValue)
 {
     if (this.settings.WriteDefaultValues || !value.Equals(defaultValue)) {
         this.writer.WriteAttributeString(name, value.Format());
     }
 }
 /// <summary>
 /// Writes a font style attribute.
 /// </summary>
 /// <param name="output">The output.</param>
 /// <param name="name">The name.</param>
 /// <param name="value">The value.</param>
 protected static void WriteAttribute(XmlWriter output, string name, FontStyle value)
 {
     output.WriteAttributeString(name, value.Format());
 }