Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
11 years ago
by
Tebjan Halm
Browse files
Options
Download
Plain Diff
Merge pull request #19 from slavashar/master
Fixes simultaneously rendering multiple images
parents
f8a16fd4
47334a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Text/SvgText.cs
+6
-1
Source/Text/SvgText.cs
with
6 additions
and
1 deletion
+6
-1
Source/Text/SvgText.cs
+
6
-
1
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
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help