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

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

 

加载成功返回非零值

 

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-02-08
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2021-05-22
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案