我想使用的字体源代码临在网页上,沿着在其specimen page可见华丽的箭头。样式化的Unicode箭头显示不与谷歌网页字体的字体
我包括使用谷歌的字体,它没有列出对its respective page的箭头我的网页上的字体。但是,如果您从样本页面或htmlarrows.com中复制/粘贴一些箭头,它们会以我期望的方式呈现。
当我使用的字体作为谷歌的字体告诉我用它在我的网页,所有的其他文字变得源代码临但箭头回到默认的系统默认字体(宋体对我来说)。
下面是一个例子:
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
.container {
border-collapse: collapse;
}
td {
font-size: 96px;
}
td, th {
border: 0.1rem solid #c3c3c3;
padding: 0.5rem;
}
.row-sans-serif {
font-family: sans-serif;
}
.row-source-code-pro {
font-family: 'Source Code Pro', sans-serif;
}
<table class="container">
<thead>
<tr>
<th>font-family</th>
<th>A</th>
<th>Left</th>
<th>Right</th>
</tr>
</thead>
<tbody>
<tr class="row-sans-serif">
<th>sans-serif</th>
<td>A</td>
<td>←</td>
<td>→</td>
</tr>
<tr class="row-source-code-pro">
<th>Source Code Pro</th>
<td>A</td>
<td>←</td>
<td>→</td>
</tr>
</tbody>
</table>
当我的字体添加到我的谷歌字体网站捆绑它可以让我导入Latin
版本或Latin Extended
版本,切换到扩展版本似乎并没有改变我的用例。
我试图改变我如何导入字体从@import
到<link>
,我试图改变我如何引用Unicode字符到←
或←
,似乎没有这样的伎俩。