Opera不从网络字体呈现某些字符 [英] Opera not rendering certain characters from webfonts
问题描述
也许这不应该。但是忍受我。我使用的是Google Web Fonts,我使用的PT Sans字体如下:
Maybe it is not supposed to. But bear with me. I am using Google Web Fonts, and I am including PT Sans font like so:
<link href="https://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
我甚至有.htaccess设置如下:
and I even have .htaccess set like so:
<IfModule mod_headers.c>
<FilesMatch "\.woff$">
Header set Content-Type "application/octet-stream"
</FilesMatch>
<FilesMatch "\.ttf$">
Header set Content-Type application/octet-stream
</FilesMatch>
</IfModule>
现在PT Sans字体不包括我正在使用的波罗的海但是,Chrome,Firefox,IE渲染它们都完美 - 甚至不使用另一种字体。 Opera只是跳过他们,留下一个空白的空间。
Now PT Sans font does not include Baltic (ąčęėįšųūž) characters, which I am using. But Chrome, Firefox, IE render them all perfectly - not even using another font. Opera just skips them and leaves an empty space.
只是意识到它只用粗体字体。请检查此示例:
Just realized that it only does it with bold fonts. Check this example:
<!doctype html>
<html lang="en" class="no-js">
<head>
<title>Font test</title>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body style="font-family:'PT Sans';">
aceeisuuz<br />
ąčęėįšųūž
<p style="font-weight:bold">ąčęėįšųūž</p>
</body>
</html>
现在该如何解决?
推荐答案
我遇到了同样的问题。
解决方案是:
-
Google Web Fonts页面|选择你的cirilic字体|快速使用|
Google Web Fonts page | Chose your cirilic Font | Quick usage | Verify your settings... -> add Cyrilic set to selection.
清除Opera缓存;
Clear Opera cache;
这篇关于Opera不从网络字体呈现某些字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!