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
ded01d09
Commit
ded01d09
authored
Sep 13, 2013
by
Tebjan Halm
Browse files
Merge pull request #19 from slavashar/master
Fixes simultaneously rendering multiple images
parents
f8a16fd4
47334a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Text/SvgText.cs
View file @
ded01d09
...
...
@@ -296,7 +296,12 @@ namespace Svg
private
void
DrawString
(
GraphicsPath
path
,
SvgUnit
x
,
SvgUnit
y
,
SvgUnit
dx
,
SvgUnit
dy
,
Font
font
,
float
fontSize
,
string
text
)
{
PointF
location
=
PointF
.
Empty
;
SizeF
stringBounds
=
_stringMeasure
.
MeasureString
(
text
,
font
);
SizeF
stringBounds
;
lock
(
_stringMeasure
)
{
stringBounds
=
_stringMeasure
.
MeasureString
(
text
,
font
);
}
float
xToDevice
=
x
.
ToDeviceValue
(
this
)
+
dx
.
ToDeviceValue
(
this
);
float
yToDevice
=
y
.
ToDeviceValue
(
this
,
true
)
+
dy
.
ToDeviceValue
(
this
,
true
);
...
...
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