diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index aabf674..be2dd95 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -125,11 +125,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender | |||
125 | using (Font myFont = new Font(fontName, fontSize)) | 125 | using (Font myFont = new Font(fontName, fontSize)) |
126 | { | 126 | { |
127 | SizeF stringSize = new SizeF(); | 127 | SizeF stringSize = new SizeF(); |
128 | |||
129 | // XXX: This lock may be unnecessary. | 128 | // XXX: This lock may be unnecessary. |
130 | lock (m_graph) | 129 | lock (m_graph) |
131 | { | 130 | { |
132 | stringSize = m_graph.MeasureString(text, myFont); | 131 | stringSize = m_graph.MeasureString(text, myFont, text.Length, StringFormat.GenericTypographic); |
133 | xSize = stringSize.Width; | 132 | xSize = stringSize.Width; |
134 | ySize = stringSize.Height; | 133 | ySize = stringSize.Height; |
135 | } | 134 | } |