【问题标题】:How to call Google font API to force display Rupess Sign如何调用 Google 字体 API 强制显示卢比符号
【发布时间】:2017-08-02 07:06:03
【问题描述】:

您好,我需要显示 Rupess 符号,但由于大多数系统不支持 rupess 字体,所以我已经通过 google font API 并获得了 css,但不知道如何使用 google 支持的 css 显示 Rupess 符号。简单如何使用支持的 Google 字体 css 显示 Rupess 符号。谢谢

<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Hind" type="text/css" rel="stylesheet">
</head>
<body>
<span  id="rupess">Rs.</span>
</body></html>

【问题讨论】:

  • 为它使用 unicode &amp;#8377
  • 我使用了这个 unicode,但它显示为框,因为系统不支持卢比字体,所以这就是我使用谷歌字体 css 的原因。
  • @JonathanPortorreal 你能检查我的代码并让我知道我缺少什么吗?
  • 试试&lt;span style="font-family:Hind" id="rupess"&gt;&amp;#8377&lt;/span&gt;
  • @JaromandaX :它正在显示,但您能否详细说明一下 google 导入的 css 是否需要。

标签: javascript html css fonts google-font-api


【解决方案1】:

请用户 & #x20b9; (删除 & 符号后的空格)为卢比符号。 更多详情请阅读HTML code for INR的回答

【讨论】:

  • @Hossain:我知道这件事,因为系统没有常规字体,所以这就是使用 google font API 的原因。但不知道如何使用该 API 并显示 Rupess 符号
  • 你有没有试过在你的css文件中使用font-family,比如#rupess { font-family: 'Hind', sans-serif;; }
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-10-16
  • 2019-05-13
相关资源
最近更新 更多