Google 字体、CSS、拉丁语问题
我正在尝试在我的网站上使用此字体。
它是立陶宛语,但这不是重点,重点是,在谷歌字体预览器上我可以看到漂亮的字符,但在我的网站上一些特定的符号看起来很糟糕。
也许有人知道我该如何解决这个问题?
PS 或者推荐我一些其他标准的非常轻的字体,我可以使用......
I'm trying to use this font on my web.
It's in Lithuanian language, but it's not the point, the point is, that on google fonts previewer I can see characters beautifully, but on my site some specific symbols gets some nasty look.
Maybe anyone knows how can I solve this, I say, issue?
P.S. Or recommend me some other standard very light font which I could use ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对“Open Sans”字体也有同样的问题,花了 3 个小时尝试解决这个问题,直到找到解决方案。
尝试指定与您的语言的字形匹配的子集,就像我的例子一样:
从这里
到
看看是否可以解决您的问题。显然,请确保检查所使用的字体是否支持额外的子集。不要忘记它们还支持西里尔字母和西里尔字母扩展。
干杯,
迈克尔.
I had the same problem with 'Open Sans' font, and spent 3 hours trying to fix this, until I discovered the solution.
Try specifying the subset that matches the glyphs for your language, like in my case:
from this
to
See if that fixes your problem. Obviously make sure you check if the font used supports extra subsets. Don't forget they also support Cyrillic and Cyrillic Extended.
Cheers,
Michael.
这些字形不在字体中。
serif
的标准后备字体应该使其显而易见;这是我所看到的(使用维基百科的全语法):如果您下载字体并查看内部(使用 Mac 上的 Font Book,或类似 FontForge 的工具),您可以看到哪个字形存在或不存在。为了解决这个问题,我将在预览器中输入您需要的字符。
快速选择包含您需要的字形的无衬线字体:
Calibri 似乎与 Lato 非常匹配,因此您可以使用
font-family: Calibri, sans-serif;
(根本不嵌入任何内容)。Those glyphs are not in the font. The standard fallback font of
serif
should be making it obvious; here’s what I see (using a pangram from Wikipedia):If you download the font and look inside (using Font Book on Mac, or something like FontForge), you can see which glyphs are present or absent. To fix this, I would enter the characters you need into the previewer.
A quick selection of sans-serif fonts which contain the glyphs you need:
Calibri appears to be a decent match for Lato, so you might use
font-family: Calibri, sans-serif;
(without embedding anything at all).