| Posted in SoftWare |

 

介绍如何在 GTK+ 中使用微软雅黑字体。

找到 …\etc\pango\pango.aliases 文件,添加一行:

msyh = “Microsoft YaHei”

这就声明了雅黑字体,当然 Windows 字体目录下面应该有雅黑字体,Microsoft YaHei 就是字体的名字,比如还有 Simsun 宋体。我们把雅黑字体定义为一个字体族 msyh。

找到 …\gtk-2.0\gtkrc文件,将下 面内容加到后面

style “user-font” {
font_name = “msyh 9″
}

widget_class “*” style “user-font”

gtk-font-name=”msyh 9″

这样应用程序的字体就变成微软雅黑了。

相关文章:

  • 2022-12-23
  • 2021-10-28
  • 2021-11-13
  • 2021-08-07
  • 2021-11-06
  • 2021-11-04
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-06
  • 2021-09-11
  • 2022-12-23
  • 2021-12-10
  • 2022-01-22
  • 2021-09-11
相关资源
相似解决方案