【发布时间】:2023-04-07 02:58:01
【问题描述】:
我正在尝试为 font-family: times new roman 设置一些文本,但我在浏览器中看到了一些不同的内容(使用 chrome)。
相关html代码:
<p style="color:#F17141;font-size: 120px; font-family: "Times New Roman" ; font-weight: bold;">"</p>
相关css:
element.style {
color: #F17141;
font-size: 120px;
font-family: "Times New Roman";
font-weight: bold;
}
从浏览器中的开发者工具获取的实际渲染字体:
Times New Roman—Local file(1 glyph)
我得到的实际文本不是 Times new roman
【问题讨论】: