Commit e53aa65f authored by HarkDev's avatar HarkDev
Browse files

Added trim character on ValidateFontFamily

Some programs (like InkScape) use single quotes for the font-family.
I've added the single quote character, to the trim.
parent 02ee6c04
......@@ -319,7 +319,7 @@ namespace Svg
private static string ValidateFontFamily(string fontFamilyList)
{
// Split font family list on "," and then trim start and end spaces and quotes.
var fontParts = fontFamilyList.Split(new[] { ',' }).Select(fontName => fontName.Trim(new[] { '"', ' ' }));
var fontParts = fontFamilyList.Split(new[] { ',' }).Select(fontName => fontName.Trim(new[] { '"', ' ','\'' }));
var families = System.Drawing.FontFamily.Families;
......
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