From 953581698d2fade30ed76cdae3f8c3a0031b35fb Mon Sep 17 00:00:00 2001 From: dr scofield (aka dirk husemann) Date: Mon, 31 Aug 2009 09:28:56 +0200 Subject: - making font name used by VectorRenderModule configurable: can be set via [VectorRender] font_name = "Comic Sans MS" in OpenSim.ini - adding osSetFontName OSSL function --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 0de5c9b..bca019b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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"); -- cgit v1.1