Merge pull request #9 from xkww3n/main

Add SSFangTangTi for better Chinese characters rendering
This commit is contained in:
Ayaka
2022-10-23 10:31:34 +01:00
committed by GitHub
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');
}