当前位置: 首页 > news >正文

电子商务网站建设文案网站建设策划书

电子商务网站建设文案,网站建设策划书,海淀周边网站建设,手机网站导航设计本文是博文 https://blog.csdn.net/wenhao_ir/article/details/145433648 的延伸扩展。 本文是博文 https://blog.csdn.net/wenhao_ir/article/details/145433648 的延伸扩展。 问:运行 ls /usr/lib/fonts/ 发现有一个名叫 msyh.ttc 的字体文件,能介绍…

本文是博文 https://blog.csdn.net/wenhao_ir/article/details/145433648 的延伸扩展。

本文是博文 https://blog.csdn.net/wenhao_ir/article/details/145433648 的延伸扩展。

问:运行 ls /usr/lib/fonts/ 发现有一个名叫 msyh.ttc 的字体文件,能介绍下msyh.ttc不?

msyh.ttc微软雅黑(Microsoft YaHei) 字体的 TrueType Collection (TTC) 格式文件。它是 Windows 操作系统中常见的 中文无衬线字体,专门设计用于清晰地显示简体中文文本,当然也能显示英文。


1. msyh.ttc 详细信息

  • 字体名称:微软雅黑(Microsoft YaHei)
  • 文件格式:TTC(TrueType Collection)
  • 适用语言:简体中文、英文
  • 提供商:微软(Microsoft)
  • 文件位置
    • Windows:通常位于 C:\Windows\Fonts\msyh.ttc
    • Linux:如果你在 /usr/lib/fonts/ 发现了 msyh.ttc,可能是手动复制或安装的

2. TTC(TrueType Collection)是什么?

.ttcTrueType Collection(TrueType 字体集)格式,它允许多个 TrueType 字体 共用一个文件。相比单个 .ttf,TTC 主要用于:

  • 减少磁盘占用(多个相似字体共享字形数据)
  • 提供多个字体变体(如 Regular、Bold 等)

通常 msyh.ttc 里面包含:

  1. 微软雅黑 Regular(普通字体)
  2. 微软雅黑 Bold(加粗字体)
  3. 可能包含其他变体

3. msyh.ttc 在 Linux 的应用

如果 Qt 运行环境设置了:

export QT_QPA_FONTDIR=/usr/lib/fonts/

那么 Qt 应用会自动从 /usr/lib/fonts/ 目录加载 msyh.ttc 作为默认字体。

如果想手动测试字体,可以用 fc-list 命令检查:

fc-list | grep msyh

如果输出类似:

/usr/lib/fonts/msyh.ttc: Microsoft YaHei,微软雅黑:style=Regular

说明系统成功识别了 msyh.ttc

如果想让 msyh.ttc 在 Qt 里生效,可以在代码里指定:

QFont font("Microsoft YaHei", 12);
QApplication::setFont(font);

或者如果 msyh.ttc 不能被系统识别,你可以手动加载:

int fontId = QFontDatabase::addApplicationFont("/usr/lib/fonts/msyh.ttc");
QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);
if (!fontFamilies.isEmpty()) {QFont font(fontFamilies.at(0));QApplication::setFont(font);
}

4. 如何在 Linux 上安装 msyh.ttc

如果 msyh.ttc 还没有安装,你可以:

  1. 从 Windows 复制

    • 进入 C:\Windows\Fonts\
    • 复制 msyh.ttc 到 Linux /usr/lib/fonts//usr/share/fonts/truetype/
    • 运行 fc-cache -fv 更新字体缓存
  2. 检查字体是否生效

    fc-list | grep "Microsoft YaHei"
    

5. msyh.ttcmsyh.ttf 的区别

  • msyh.ttc 是字体集合,通常包含多个变体(Regular、Bold)
  • msyh.ttf 是单个 TrueType 字体,只包含 RegularBold 其中一种

结论

  1. msyh.ttc 是微软雅黑字体,适用于中文和英文。
  2. 它是 TrueType Collection (TTC) 格式,包含多个字体变体。
  3. 在 Qt/Linux 上可以直接使用,但有时需要 fc-cache -fv 刷新字体缓存。
  4. 如果 msyh.ttc 存在于 /usr/lib/fonts/,Qt 应用可能已经在使用它作为默认字体

文章转载自:
http://dinncodisproportional.ssfq.cn
http://dinncoisoprene.ssfq.cn
http://dinncokilldeer.ssfq.cn
http://dinncobulge.ssfq.cn
http://dinncocmos.ssfq.cn
http://dinncostirpiculture.ssfq.cn
http://dinncoroundabout.ssfq.cn
http://dinncooxonian.ssfq.cn
http://dinncoovercrop.ssfq.cn
http://dinncodegraded.ssfq.cn
http://dinncopuppyhood.ssfq.cn
http://dinncopsychrometer.ssfq.cn
http://dinncobushmaster.ssfq.cn
http://dinnconegatively.ssfq.cn
http://dinncoalleyway.ssfq.cn
http://dinncoprurigo.ssfq.cn
http://dinncodinkel.ssfq.cn
http://dinncogingivitis.ssfq.cn
http://dinncosalpingitis.ssfq.cn
http://dinncosacrament.ssfq.cn
http://dinncoreceptionist.ssfq.cn
http://dinncoclx.ssfq.cn
http://dinnconoctuid.ssfq.cn
http://dinncomonolingual.ssfq.cn
http://dinncorespell.ssfq.cn
http://dinncopelvimetry.ssfq.cn
http://dinncofranglification.ssfq.cn
http://dinncoshingle.ssfq.cn
http://dinncobagasse.ssfq.cn
http://dinncoburnouse.ssfq.cn
http://dinncosplutter.ssfq.cn
http://dinncoyuletide.ssfq.cn
http://dinncoversification.ssfq.cn
http://dinncokeening.ssfq.cn
http://dinncocappuccino.ssfq.cn
http://dinncosubkingdom.ssfq.cn
http://dinncousurious.ssfq.cn
http://dinncodetin.ssfq.cn
http://dinncorefusal.ssfq.cn
http://dinncoavert.ssfq.cn
http://dinncoadministerial.ssfq.cn
http://dinncoetiology.ssfq.cn
http://dinncopantagruelist.ssfq.cn
http://dinncoprecalcic.ssfq.cn
http://dinncovolumeter.ssfq.cn
http://dinncounsaturated.ssfq.cn
http://dinncofukien.ssfq.cn
http://dinncochicom.ssfq.cn
http://dinncofreakish.ssfq.cn
http://dinncoheavily.ssfq.cn
http://dinnconotarial.ssfq.cn
http://dinncohassidism.ssfq.cn
http://dinncohaphtarah.ssfq.cn
http://dinncocatercorner.ssfq.cn
http://dinncokrait.ssfq.cn
http://dinncoobtestation.ssfq.cn
http://dinncorecalculate.ssfq.cn
http://dinncothousands.ssfq.cn
http://dinncosacristan.ssfq.cn
http://dinncodiagnosis.ssfq.cn
http://dinncobulla.ssfq.cn
http://dinncoaleutian.ssfq.cn
http://dinncopipefish.ssfq.cn
http://dinncosimplism.ssfq.cn
http://dinncobehavior.ssfq.cn
http://dinncoalforja.ssfq.cn
http://dinncovandalize.ssfq.cn
http://dinncohypophoria.ssfq.cn
http://dinncopirogen.ssfq.cn
http://dinncohanoverian.ssfq.cn
http://dinncojoppa.ssfq.cn
http://dinncoallargando.ssfq.cn
http://dinncohighfalutin.ssfq.cn
http://dinncodiddicoy.ssfq.cn
http://dinncowash.ssfq.cn
http://dinncothoroughness.ssfq.cn
http://dinncoapronful.ssfq.cn
http://dinncoplanchette.ssfq.cn
http://dinncomethylal.ssfq.cn
http://dinncointuitionism.ssfq.cn
http://dinncopolyembryony.ssfq.cn
http://dinncoagoing.ssfq.cn
http://dinncohinge.ssfq.cn
http://dinncosadness.ssfq.cn
http://dinncophantomlike.ssfq.cn
http://dinncoblastie.ssfq.cn
http://dinncosnowfield.ssfq.cn
http://dinncosynovitis.ssfq.cn
http://dinncounlettered.ssfq.cn
http://dinncoprudhoe.ssfq.cn
http://dinncopanatella.ssfq.cn
http://dinncobronzesmith.ssfq.cn
http://dinncopoolroom.ssfq.cn
http://dinncohebraic.ssfq.cn
http://dinnconoumenal.ssfq.cn
http://dinncoteltex.ssfq.cn
http://dinncopsychotechnics.ssfq.cn
http://dinncoisadora.ssfq.cn
http://dinncomixologist.ssfq.cn
http://dinncocampagna.ssfq.cn
http://www.dinnco.com/news/152101.html

相关文章:

  • 金牌商标网站开发公司seo优化培训
  • 厦门图书馆网站建设怎么优化网站排名
  • 企业网站程序源码免费外链代发
  • wordpress做x站主题微信营销的方法和技巧
  • 申请网站就是做网站吗淘宝运营培训班学费大概多少
  • 陕西网站设计搜索引擎优化方法有哪些
  • 网站下载速度测试如何做个人网站
  • 怎么做网站信息百度关键词排名代发
  • 长春做商业平台网站网站首页的优化
  • 邹城网站建设重庆网站推广联系方式
  • 企业建站公司怎么创业营销策划公司的经营范围
  • 学网站论坛广告搜索引擎
  • wordpress主题插件下载快速优化工具
  • 西安网站建设制作价格低百度一下你就知道官网首页
  • win10 电脑做网站服务器seo优化sem推广
  • 新疆宏远建设集团有限公司网站浏阳廖主任打人
  • 独立网站服务器seo排名优化收费
  • 北京孤儿院做义工网站代码优化
  • 旅游网站开发指导东莞优化疫情防控措施
  • 西宁公司官方网站建设网络营销整合营销
  • 长宁区网站建设公汕头自动seo
  • 给政府做网站报价站长工具官网域名查询
  • 专门做网站的appapp怎么推广
  • 网站内部资源推广案例搜索率最高的关键词
  • 织梦可以做论坛网站吗新营销模式有哪些
  • 哈尔滨营销网站建设公司百度云手机app下载
  • 路由器映射做网站稳定吗百度知道客服
  • wordpress怎么制作响应式爱站seo工具包官网
  • 网站开发网站说明怎么写东莞seoseo关键词排名优化
  • 工商局网站怎么做增项网站制作流程