diff options
author | dr scofield (aka dirk husemann) | 2009-08-31 09:28:56 +0200 |
---|---|---|
committer | dr scofield (aka dirk husemann) | 2009-08-31 10:30:10 +0200 |
commit | 953581698d2fade30ed76cdae3f8c3a0031b35fb (patch) | |
tree | 75154a48797a15df0749a57eb3aea196678b569f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Remove typo version of ReplaceableInterface property from RegionCombinerModule. (diff) | |
download | opensim-SC-953581698d2fade30ed76cdae3f8c3a0031b35fb.zip opensim-SC-953581698d2fade30ed76cdae3f8c3a0031b35fb.tar.gz opensim-SC-953581698d2fade30ed76cdae3f8c3a0031b35fb.tar.bz2 opensim-SC-953581698d2fade30ed76cdae3f8c3a0031b35fb.tar.xz |
- making font name used by VectorRenderModule configurable: can be set
via
[VectorRender]
font_name = "Comic Sans MS"
in OpenSim.ini
- adding osSetFontName OSSL function
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
880 | return drawList; | 880 | return drawList; |
881 | } | 881 | } |
882 | 882 | ||
883 | public string osSetFontName(string drawList, string fontName) | ||
884 | { | ||
885 | CheckThreatLevel(ThreatLevel.None, "osSetFontName"); | ||
886 | |||
887 | m_host.AddScriptLPS(1); | ||
888 | drawList += "FontName "+ fontName +"; "; | ||
889 | return drawList; | ||
890 | } | ||
891 | |||
883 | public string osSetPenSize(string drawList, int penSize) | 892 | public string osSetPenSize(string drawList, int penSize) |
884 | { | 893 | { |
885 | CheckThreatLevel(ThreatLevel.None, "osSetPenSize"); | 894 | CheckThreatLevel(ThreatLevel.None, "osSetPenSize"); |