public void ChangePixelMode(uint size, string fontName, uint faceIndex = 0)
        {
            FontType key = new FontType();

            key.fontName  = fontName;
            key.faceIndex = faceIndex;
            FreeTypeFont font;

            if (m_FontsMap.TryGetValue(key, out font))
            {
                ChangePixelMode(size, font);
            }
        }
        // 改变字体大小
        public void ChangeFontSize(uint newSize, string fontName, uint faceIndex = 0)
        {
            FontType key = new FontType();

            key.fontName  = fontName;
            key.faceIndex = faceIndex;
            FreeTypeFont font;

            if (m_FontsMap.TryGetValue(key, out font))
            {
                ChangeFontSize(font, newSize);
            }
        }
        // 释放字体库
        public void FreeFont(string fontName, uint faceIndex = 0)
        {
            FreeTypeFont font;
            FontType     key = new FontType();

            key.fontName  = fontName;
            key.faceIndex = faceIndex;
            if (m_FontsMap.TryGetValue(key, out font))
            {
                DestroyFont(font);
                m_FontsMap.Remove(key);
            }
        }
        public FreeTypeFont FindFreeTypeFont(string fontName, uint faceIndex = 0)
        {
            FontType key = new FontType();

            key.fontName  = fontName;
            key.faceIndex = faceIndex;
            FreeTypeFont ret;

            if (!m_FontsMap.TryGetValue(key, out ret))
            {
                return(null);
            }
            return(ret);
        }
        public IntPtr FindFont(string fontName, uint faceIndex = 0)
        {
            FontType key = new FontType();

            key.fontName  = fontName;
            key.faceIndex = faceIndex;
            FreeTypeFont ret;

            if (!m_FontsMap.TryGetValue(key, out ret))
            {
                return(default(IntPtr));
            }
            if (ret == null)
            {
                return(default(IntPtr));
            }
            return(ret.font);
        }