Exemple #1
0
        private object AddText(object param)
        {
            if (m_Owner != null)
            {
                AddText    addText = (AddText)param;
                EntityView ev      = m_Owner.GetView();
                if (ev != null)
                {
                    Engine.FontID fontID  = Engine.FontID.Fzy4jw;
                    string        strFont = addText.strFontName.ToLower();
                    if (strFont.Contains("fzy4jw"))
                    {
                        fontID = Engine.FontID.Fzy4jw;
                    }
                    else if (strFont.Contains("fzy4fw"))
                    {
                        fontID = Engine.FontID.Fzy4fw;
                    }
                    return(ev.AddRenderText(addText.strText, fontID, addText.nFontSize, addText.fCharSize, addText.color, addText.strLocatorName, addText.offset));
                }
            }

            return(0);
        }