示例#1
0
        //提取汉字笔画图片
        public string Get_StrokesImage(typeFace typeFace = typeFace.中宋体)
        {
            Word_Font pFont = new Word_Font()
            {
                TypeFace = typeFace,
                WordStr  = this.WordStr
            };

            return(pFont.Get_StrokesImage(Word_Manager._Manager._dirWordBase + "Strokes/"));
        }
示例#2
0
        //设置汉字字体信息
        protected internal bool Set_Font(typeFace typeFace, string urlImgFont, string urlImgFontStroke)
        {
            Word_Font pFont = new Word_Font()
            {
                TypeFace = typeFace,
                WordStr  = this.WordStr
            };

            if (pFont.Init_ByUrl(urlImgFont, Word_Manager._Manager._dirWordBase + "Fonts/") &&
                pFont.InitStroke_ByUrl(urlImgFontStroke, Word_Manager._Manager._dirWordBase + "Strokes/"))
            {
                if (!Fonts.Contains(typeFace))
                {
                    this.Fonts.Add(typeFace);
                }
                return(true);
            }
            return(false);
        }