Google字体中的数字显示不同 [英] Numbers in Google fonts display different

查看:97
本文介绍了Google字体中的数字显示不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是希伯来语Google网络字体notosanshebrew,除了数字以外,它看起来都不错,而数字方面,它看起来就像是另一种字体.

I am using a Hebrew Google web font notosanshebrew it looks good except the numbers, when it comes to numbers it looks like a different font.

涉及数字或其他任何修复方法时,是否可以使用其他字体?

Is there any way to use other font when it comes to numbers or any other fix?

我的字体导入代码:
@import url(http://fonts.googleapis.com/earlyaccess/notosanshebrew.css);

My import code for the font:
@import url(http://fonts.googleapis.com/earlyaccess/notosanshebrew.css);

推荐答案

您可以在希伯来语字体后面定义后备字体. 在此 JsFiddle 中,您可以看到给定字体的希伯来文字(我从Google那里得到的第一个)文本使用Consolas(等宽字体).

You can define a fallback font behind your hebrew font. In this JsFiddle you can see the hebrew text (first one I got from google) in your given font and every other text is in Consolas (a monospace font).

在链接断开的情况下css

css for the case the link breaks

@import url(http://fonts.googleapis.com/earlyaccess/notosanshebrew.css);
body{font-family: 'Noto Sans Hebrew','Consolas';}

这篇关于Google字体中的数字显示不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆