Beispiel #1
0
 int setString(string text)
 {
     if (mFont == null)
     {
         mText = new ushort[0];
         return(0);
     }
     mText = mFont.encode(text);
     return(mText.Length);
 }
Beispiel #2
0
 public static ushort[] loadTextBuffer(xElement element, bloFont font)
 {
     if (element == null || font == null)
     {
         return(new ushort[0]);
     }
     return(font.encode(element.Value));
 }