public static spriteFont fromRaw(WebGLRenderingContext webgl, string txt, spriteTexture texture = null) { var sf = new spriteFont(webgl, null, texture); sf._parse(txt); return(sf); }
public void regDirect(string name, spriteFont font) { if (this.mapInfo.ContainsKey(name)) //var item = this.mapInfo[name]; //if (item != Script.Undefined) { throw new Exception("you can't reg the same name"); //ness } var item = new fontMgrItem(); //ness this.mapInfo[name] = item; item.font = font; }