【问题标题】:Open Sans "less than or equal" character打开 Sans“小于或等于”字符
【发布时间】:2018-08-27 14:03:30
【问题描述】:

我们使用的是 Google“Open Sans”字体。该字体应该支持“小于或等于”(≤)字符,根据:

http://www.fontspace.com/steve-matteson/open-sans/38448/charmap

(向下滚动到数学运算符)

但在 Chrome 中,尽管应用了 font-family: 'Open Sans' 样式,但它显示为以 Arial 呈现。这是怎么回事?

【问题讨论】:

    标签: html font-family


    【解决方案1】:

    字体(Open Sans)可能在计算机目标浏览器中不可用。是否已在您的 css/html 中导入该字体?

    这个怎么样

    html {
      font-family: 'Open Sans'
    }
    <html>
    <head>
        <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    </head>
    <body>
        Hai this is the symbol &#8804;
    </body>
    
    </html>

    【讨论】:

    • 是的,它几乎完全被使用,并且显示在 Chrome 中呈现为 Open Sans。只是 ≤ 字符没有。
    • 这不是答案。这必须是评论。
    • 当我运行上面的 sn-p 时,Chrome 开发工具说一个字符实际上是在使用 Times New Roman: Rendered Fonts Open Sans-Network resource(23 glyphs) Times New Roman-Local file(1字形)
    猜你喜欢
    • 2011-01-25
    • 1970-01-01
    • 2013-09-02
    • 1970-01-01
    • 2017-06-16
    • 2019-12-07
    • 2022-09-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多