Commit a45d151c authored by samjudson's avatar samjudson
Browse files

Update SvgText.cs

Get first font in font family only.
parent 5cd5cf2a
...@@ -232,7 +232,7 @@ namespace Svg ...@@ -232,7 +232,7 @@ namespace Svg
} }
FontStyle fontWeight = (this.FontWeight == SvgFontWeight.bold ? FontStyle.Bold : FontStyle.Regular); FontStyle fontWeight = (this.FontWeight == SvgFontWeight.bold ? FontStyle.Bold : FontStyle.Regular);
Font font = new Font(this._fontFamily, fontSize, fontWeight, GraphicsUnit.Pixel); Font font = new Font(this._fontFamily.Split(new [] {','})[0], fontSize, fontWeight, GraphicsUnit.Pixel);
_path = new GraphicsPath(); _path = new GraphicsPath();
_path.StartFigure(); _path.StartFigure();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment