首页 > 解决方案 > 为什么 font-variant-numeric: slashed-zero 不适用于我的谷歌字体?

问题描述

这不会在我的末端产生斜线 0:

  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <style>
    h2{
      font-family: 'Inter';
      font-variant-numeric: slashed-zero;
    }
  </style>
  <h2>00000</h2>

我已经尝试寻找答案,但还没有找到一个直接的答案。此外,当我安装字体时,我看不到 0 的变体。

标签: cssfontsfont-face

解决方案


推荐阅读