コード例 #1
0
        public static spriteFont fromRaw(WebGLRenderingContext webgl, string txt, spriteTexture texture = null)
        {
            var sf = new spriteFont(webgl, null, texture);

            sf._parse(txt);
            return(sf);
        }
コード例 #2
0
        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;
        }