简体   繁体   English

在http标头中为.ttf文件指定字符集

[英]Specify a character set to .ttf files in http headers

I tested my website performances on GTmetrix, and it asks me to specify a character set to .tff files in .htaccess, but i don't know how to fix it. 我在GTmetrix上测试了我的网站性能,它要求我在.htaccess中为.tff文件指定一个字符集,但是我不知道如何解决它。 Have you got an answer ? 你有答案吗?

Thanks for helping ! 感谢您的帮助! ;) ;)

This should do it - works for me: 这应该做到-为我工作:

<FilesMatch "\.(ttf)$">
   ForceType 'font/opentype; charset=UTF-8'
</FilesMatch>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM