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