在 HTML 页面中写入 Unicode 抄写字符(使用 Junicode)?
希望这是一个非常简单的问题,但很多谷歌搜索都没有找到答案!
我想在网页上显示拉丁文扩展 D 集中的 Unicode 字符(PDF 描述Extended-D),使用支持 Extended-D 的 Junicode。
我想显示的代码是“A760 LATIN CAPITAL LETTER VY”。
这是我的完整页面:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Font Experiments</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body id="home">
ῦ
&#A760;
</body></html>
这就是我的样式表的样子:
@font-face {
font-family: 'Junicode';
src: url('../fonts/junicode-regular-webfont.eot');
src: url('../fonts/junicode-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Junicode.woff') format('woff'),
url('../fonts/Junicode.ttf') format('truetype'),
url('../fonts/junicode-regular-webfont.svg#JunicodeRegular') format('svg');
font-weight: normal;
font-style: normal;
}
body {
font-family: junicode, gentium, caslon roman, serif;
}
我已检查并且 Junicode 正在正确加载。但是,虽然第一个 Unicode 字符正确显示为 ῦ,但对于第二个字符,我只在页面上看到文字 &#A760
。
我怎样才能表明它应该显示为 Unicode Extended-D 字符 A760?
This is hopefully a very simple question, but one a lot of Googling has not found the answer to!
I would like to display a Unicode character from the Latin Extended-D set on a web page (PDF description of Extended-D), using Junicode, which supports Extended-D.
The code I would like to display is "A760 LATIN CAPITAL LETTER VY".
This is my page in full:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Font Experiments</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body id="home">
ῦ
A760;
</body></html>
And this is what my stylesheet looks like:
@font-face {
font-family: 'Junicode';
src: url('../fonts/junicode-regular-webfont.eot');
src: url('../fonts/junicode-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Junicode.woff') format('woff'),
url('../fonts/Junicode.ttf') format('truetype'),
url('../fonts/junicode-regular-webfont.svg#JunicodeRegular') format('svg');
font-weight: normal;
font-style: normal;
}
body {
font-family: junicode, gentium, caslon roman, serif;
}
I have checked and Junicode is being loaded correctly. But while the first Unicode character displays correctly as ῦ, for the second character I just see a literal A760
on the page.
How can I indicate that this should be displayed as Unicode Extended-D character A760?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你必须更改为十六进制:
I think you have to change to hexadecimal: