recover previus behavior of FontProp
parent
8af2d99ba9
commit
c6c386cd80
|
@ -493,7 +493,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
Point endPoint = new Point(0, 0);
|
Point endPoint = new Point(0, 0);
|
||||||
Pen drawPen = null;
|
Pen drawPen = null;
|
||||||
Font myFont = null;
|
Font myFont = null;
|
||||||
FontStyle myFontStyle;
|
|
||||||
SolidBrush myBrush = null;
|
SolidBrush myBrush = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -664,7 +664,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
}
|
}
|
||||||
else if (nextLine.StartsWith("FontProp"))
|
else if (nextLine.StartsWith("FontProp"))
|
||||||
{
|
{
|
||||||
myFontStyle = FontStyle.Regular;
|
FontStyle myFontStyle = myFont.Style;
|
||||||
|
|
||||||
nextLine = nextLine.Remove(0, 8);
|
nextLine = nextLine.Remove(0, 8);
|
||||||
nextLine = nextLine.Trim();
|
nextLine = nextLine.Trim();
|
||||||
|
@ -691,10 +691,12 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(myFontStyle != myFont.Style)
|
||||||
Font newFont = new Font(myFont, myFontStyle);
|
{
|
||||||
myFont.Dispose();
|
Font newFont = new Font(myFont, myFontStyle);
|
||||||
myFont = newFont;
|
myFont.Dispose();
|
||||||
|
myFont = newFont;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (nextLine.StartsWith("FontName"))
|
else if (nextLine.StartsWith("FontName"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue