- making font name used by VectorRenderModule configurable: can be set

via

      [VectorRender]
      font_name = "Comic Sans MS"

  in OpenSim.ini

- adding osSetFontName OSSL function
This commit is contained in:
dr scofield (aka dirk husemann)
2009-08-31 09:28:56 +02:00
parent bbef5c344e
commit 953581698d
5 changed files with 31 additions and 3 deletions

View File

@@ -880,6 +880,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return drawList;
}
public string osSetFontName(string drawList, string fontName)
{
CheckThreatLevel(ThreatLevel.None, "osSetFontName");
m_host.AddScriptLPS(1);
drawList += "FontName "+ fontName +"; ";
return drawList;
}
public string osSetPenSize(string drawList, int penSize)
{
CheckThreatLevel(ThreatLevel.None, "osSetPenSize");