gpt4 book ai didi

html - 有UTF-8字体吗?

转载 作者:搜寻专家 更新时间:2023-10-31 22:00:29 25 4
gpt4 key购买 nike

我正在搜索 UTF-8 字体以将其添加到我的网页,但我没有找到。

(function() {
var link_element = document.createElement("link"),
s = document.getElementsByTagName("script")[0];
if (window.location.protocol !== "http:" && window.location.protocol !== "https:") {
link_element.href = "http:";
}
link_element.href += "//fonts.googleapis.com/css?family=Josefin+Slab:100italic,100,300italic,300,400italic,400,600italic,600,700italic,700";
link_element.rel = "stylesheet";
link_element.type = "text/css";
s.parentNode.insertBefore(link_element, s);
document.getElementsByTagName("html")[0].style.fontStyle = "Josefin Slab";
})();
* {
font-family: "Josefin Slab";
font-size: 30px;
}
This happens when I write Ő, Ű, ő or ű

我想显示“Ő”、“Ű”、“ő”和“ű”。有人可以帮忙吗?

最佳答案

UTF-8 是一种编码,一种表示Unicode 的方式。 Unicode 实际上是用户可能需要在一段文本中使用的所有字符、标点符号、空格等的列表。

您可能不需要支持阿拉伯语、印地语和中文的单一字体,事实上很少有字体试图覆盖整个 Uniocde 代码空间。

许多字体都与 Unicode 兼容(现在大多数),但您需要考虑您需要 Unicode 的哪些部分。大多数字体只试图涵盖几种语言或一组相关的脚本,如拉丁文、希腊文和西里尔文。例如,听起来您想要很好地覆盖拉丁字母,包括重音形式。

您似乎对通过 Google 网络字体提供的 Slab Serif 字体特别感兴趣。我建议您首先查看 Roboto Slab,它具有不错的覆盖范围(包括您在问题中使用的所有那些字形)并且有四种权重。

关于html - 有UTF-8字体吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27756840/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com