aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces
diff options
context:
space:
mode:
authorSean Dague2009-02-18 12:56:36 +0000
committerSean Dague2009-02-18 12:56:36 +0000
commit383f8b3ac601baef7b2cb322f53fb36b69367286 (patch)
treef90b2535f102be4f3ba50a41bb2668dc2cb956f2 /OpenSim/Region/Framework/Interfaces
parentremove legacy pre-migration code for mysql grid adapter, who knew this (diff)
downloadopensim-SC_OLD-383f8b3ac601baef7b2cb322f53fb36b69367286.zip
opensim-SC_OLD-383f8b3ac601baef7b2cb322f53fb36b69367286.tar.gz
opensim-SC_OLD-383f8b3ac601baef7b2cb322f53fb36b69367286.tar.bz2
opensim-SC_OLD-383f8b3ac601baef7b2cb322f53fb36b69367286.tar.xz
From: Christopher Yeoh <yeohc@au1.ibm.com>
The attached patch implements osGetDrawStringSize that looks like: vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize) in LSL. It is meant to be used in conjunction with the osDraw* functions. It returns accurate information on the size that a given string will be rendered given the specified font and font size. This allows for nicely formatted and positioned text on the generated image.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs b/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs
index e119bc3..9b29209 100644
--- a/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs
+++ b/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs
@@ -43,6 +43,8 @@ namespace OpenSim.Region.Framework.Interfaces
43 int updateTimer); 43 int updateTimer);
44 UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, 44 UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams,
45 int updateTimer, bool SetBlending, byte AlphaValue); 45 int updateTimer, bool SetBlending, byte AlphaValue);
46 void GetDrawStringSize(string contentType, string text, string fontName, int fontSize,
47 out double xSize, out double ySize);
46 } 48 }
47 49
48 public interface IDynamicTextureRender 50 public interface IDynamicTextureRender
@@ -54,5 +56,7 @@ namespace OpenSim.Region.Framework.Interfaces
54 byte[] ConvertStream(Stream data, string extraParams); 56 byte[] ConvertStream(Stream data, string extraParams);
55 bool AsyncConvertUrl(UUID id, string url, string extraParams); 57 bool AsyncConvertUrl(UUID id, string url, string extraParams);
56 bool AsyncConvertData(UUID id, string bodyData, string extraParams); 58 bool AsyncConvertData(UUID id, string bodyData, string extraParams);
59 void GetDrawStringSize(string text, string fontName, int fontSize,
60 out double xSize, out double ySize);
57 } 61 }
58} 62}