Closed yuygfgg closed 3 months ago
It works fine in mine.
Style: Default,ZhunYuan,68,&H00FFFFFF,&HF0000000,&H00ED2AAC,&H78E645B0,-1,0,0,0,100,100,3,0,1,3.15,1.8,2,45,45,15,1
The Default
Style use Fontname ZhunYuan
, if this font is not installed in your computer, browser will fallback to sans-serif, ASS.js doesn't handle any font loading or rendering.
You can open DevTools with F12 and uncheck the font-family
to see if it's OK.
It works fine in mine.
Style: Default,ZhunYuan,68,&H00FFFFFF,&HF0000000,&H00ED2AAC,&H78E645B0,-1,0,0,0,100,100,3,0,1,3.15,1.8,2,45,45,15,1
The
Default
Style use FontnameZhunYuan
, if this font is not installed in your computer, browser will fallback to sans-serif, ASS.js doesn't handle any font loading or rendering.You can open DevTools with F12 and uncheck the
font-family
to see if it's OK.
Unchecking font-family fixed my problem. But I got a question: Other software, including iina and infuse, shows ass subtitle correctly even without fonts required. As you mentioned, browser will fall back to sans-serif. Why didn't that work?
And after installing ZhunYuan, the same problem still exsist if I check font-family.
Is your system Linux?
Check font-family
and try these:
font-family
value to ZhunYuan
font-family
value to ZhunYuan, Arial, sans-serif
Will any of these work?
- ZhunYuan
Well, none of these work. And I'm on macos.
But I found that the following code works.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>字体测试</title>
<style>
.zhunyuan {
font-family: ZhunYuan;
}
.arial {
font-family: Arial;
}
.sans-serif {
font-family: sans-serif;
}
</style>
</head>
<body>
<h1>字体测试</h1>
<p class="zhunyuan">这是一段使用 ZhunYuan 字体的测试文本。</p>
<p class="arial">这是一段使用 Arial 字体的测试文本。</p>
<p class="sans-serif">这是一段使用 sans-serif 字体的测试文本。</p>
</body>
</html>
Well, the problem seems to be solved by uninstalling the 2 ZhunYuan fonts. I don't know why. Maybe the 2 fonts are somehow broken?
Do you install any ZhunYuan fonts before?
From my experience, after installing fonts, browser should be reopened to properly load the new font.
A possibility reason:
不太行…
doesn't show in ASS.js, or in any other pages
轻音少女.se2.ep21.ass.zip