我在 website 上使用自定义字体我正在开发,但没有显示一些基本字符。似乎是什么问题?
我也在从 MYSQL 中获取内容。
是不是字体不好?
@font-face {font-family: Cabin_Regular; src: url('fonts/Cabin_Regular.ttf');}
@font-face {font-family: Lobster; src: url('fonts/Lobster.ttf');}
body, select, input, textarea {font-family: 'Cabin_Regular';color:white;font-size: 16px;text-shadow: 0.1em 0.1em 0.2em black;}
h1, h2, h3, h4, h5, h6 {font-family: 'Lobster'; margin-bottom: 0;padding-bottom: 0;margin-top: 0; padding-top: 0;}
最佳答案
首先检查字符是否经过编码,例如版权符号在数据库中应该是©
。
其次检查字体是否甚至支持某些字体没有您想要的所有字形的字符。角色应该是什么?
关于php - FONT 不显示某些字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10003664/