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
}
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.StartFigure();
......@@ -345,4 +345,4 @@ namespace Svg
return newObj;
}
}
}
\ No newline at end of file
}
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