Add SSFangTangTi for better Chinese characters rendering

This commit is contained in:
xkww3n
2022-10-23 14:11:36 +08:00
parent 56a84228bf
commit 7dd13980fe
3 changed files with 6 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ function App() {
img.width * ratio,
img.height * ratio
);
ctx.font = `${fontSize}px YurukaStd`;
ctx.font = `${fontSize}px YurukaStd, SSFangTangTi`;
ctx.lineWidth = 9;
ctx.save();

Binary file not shown.

View File

@@ -8,3 +8,8 @@ body {
font-family: 'YurukaStd';
src: local('YurukaStd'), url(./fonts/YurukaStd.woff2) format('woff2');
}
@font-face {
font-family: 'SSFangTangTi';
src: local('SSFangTangTi'), url(./fonts/ShangShouFangTangTi.woff2) format('woff2');
}