using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Svg
{
[SvgElement("font-face")]
public class SvgFontFace : SvgElement
{
[SvgAttribute("alphabetic")]
public float Alphabetic
{
get { return (this.Attributes["alphabetic"] == null ? 0 : (float)this.Attributes["alphabetic"]); }
set { this.Attributes["alphabetic"] = value; }
}
[SvgAttribute("ascent")]
public float Ascent
{
get { return (this.Attributes["ascent"] == null ? this.UnitsPerEm : (float)this.Attributes["ascent"]); }
set { this.Attributes["ascent"] = value; }
}
[SvgAttribute("ascent-height")]
public float AscentHeight
{
get { return (this.Attributes["ascent-height"] == null ? this.Ascent : (float)this.Attributes["ascent-height"]); }
set { this.Attributes["ascent-height"] = value; }
}
[SvgAttribute("descent")]
public float Descent
{
get { return (this.Attributes["descent"] == null ? 0 : (float)this.Attributes["descent"]); }
set { this.Attributes["descent"] = value; }
}
///
/// Indicates which font family is to be used to render the text.
///
[SvgAttribute("font-family")]
public virtual string FontFamily
{
get { return this.Attributes["font-family"] as string; }
set { this.Attributes["font-family"] = value; }
}
///
/// Refers to the size of the font from baseline to baseline when multiple lines of text are set solid in a multiline layout environment.
///
[SvgAttribute("font-size")]
public virtual SvgUnit FontSize
{
get { return (this.Attributes["font-size"] == null) ? SvgUnit.Empty : (SvgUnit)this.Attributes["font-size"]; }
set { this.Attributes["font-size"] = value; }
}
///
/// Refers to the style of the font.
///
[SvgAttribute("font-style")]
public virtual SvgFontStyle FontStyle
{
get { return (this.Attributes["font-style"] == null) ? SvgFontStyle.inherit : (SvgFontStyle)this.Attributes["font-style"]; }
set { this.Attributes["font-style"] = value; }
}
///
/// Refers to the varient of the font.
///
[SvgAttribute("font-variant")]
public virtual SvgFontVariant FontVariant
{
get { return (this.Attributes["font-variant"] == null) ? SvgFontVariant.inherit : (SvgFontVariant)this.Attributes["font-variant"]; }
set { this.Attributes["font-variant"] = value; }
}
///
/// Refers to the boldness of the font.
///
[SvgAttribute("font-weight")]
public virtual SvgFontWeight FontWeight
{
get { return (this.Attributes["font-weight"] == null) ? SvgFontWeight.inherit : (SvgFontWeight)this.Attributes["font-weight"]; }
set { this.Attributes["font-weight"] = value; }
}
[SvgAttribute("panose-1")]
public string Panose1
{
get { return this.Attributes["panose-1"] as string; }
set { this.Attributes["panose-1"] = value; }
}
[SvgAttribute("units-per-em")]
public float UnitsPerEm
{
get { return (this.Attributes["units-per-em"] == null ? 1000 : (float)this.Attributes["units-per-em"]); }
set { this.Attributes["units-per-em"] = value; }
}
[SvgAttribute("x-height")]
public float XHeight
{
get { return (this.Attributes["x-height"] == null ? float.MinValue : (float)this.Attributes["x-height"]); }
set { this.Attributes["x-height"] = value; }
}
public override SvgElement DeepCopy()
{
return base.DeepCopy();
}
}
}