wince 中动态加载字体

        //加载字体
        [DllImport("coredll.dll", SetLastError = true)]
        public static extern int AddFontResource(string FontPath);

        //卸载字体
        [DllImport("coredll.dll", SetLastError = true)]
        public static extern int RemoveFontResource(string FontPath);

 

加载成功返回非零值

 

posted on 2010-06-04 15:55  湛书华  阅读(656)  评论(0编辑  收藏  举报

导航