当前第2页 返回上一页
在每个窗体,或每个UserControl中,调用一下UpdateNotoSansCharset()数,就统一替换了。
1 2 3 4 5 6 7 8 9 10 11 12 13 | { if (OSUtils.OSVersion > FriendlyOSVersion.Win7) return ; foreach (Control ctrl in form.Controls)
UpdateNotoSansCharset(ctrl);
} public static void UpdateNotoSansCharset(ScrollableControl parent)
{ if (OSUtils.OSVersion > FriendlyOSVersion.Win7) return ; foreach (Control ctrl in parent.Controls)
UpdateNotoSansCharset(ctrl);
} public static void UpdateNotoSansCharset(GControl ctrl)
{ if (ctrl is ScrollableControl)
UpdateNotoSansCharset(ctrl as ScrollableControl); else if (ctrl is Label)
{
ctrl.Font = font;
}
}
|
4、效果
OK,难题解决,非常完美:
以上就是c#中Noto Sans字体支持韩文的实例教程的详细内容!
返回前面的内容
相关阅读 >>
c#中关于timer定时器重入问题的解决方法
在.net项目中使用postsharp
httpclient向https发送数据建立ssl连接时的异常
c# 中十进制与二进制、十六进制、八进制转换详解
.net安装framework出现报错的处理教程
oracle clob字段过长保存出错改如何解决?
详解.net core使用socket与树莓派进行通信
c#中关于dbnull的解释
c#通过kd树进行距离最近点的查找的实例分析
asp.net开发实用工具
更多相关阅读请进入《csharp》频道 >>
清华大学出版社
作者:[美]克里斯琴·内格尔(Christian Nagel)著。出版时间:2019年3月。
转载请注明出处:木庄网络博客 » c#中Noto Sans字体支持韩文的实例教程