Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
a45d151c
"Source/vscode:/vscode.git/clone" did not exist on "1a6b54139adabdf410116ea45c5bb2588b1063be"
Commit
a45d151c
authored
Sep 11, 2013
by
samjudson
Browse files
Update SvgText.cs
Get first font in font family only.
parent
5cd5cf2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Text/SvgText.cs
View file @
a45d151c
...
...
@@ -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
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment