Merge pull request #9 from xkww3n/main
Add SSFangTangTi for better Chinese characters rendering
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
BIN
src/fonts/ShangShouFangTangTi.woff2
Normal file
BIN
src/fonts/ShangShouFangTangTi.woff2
Normal file
Binary file not shown.
@@ -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');
|
||||
}
|
||||
Reference in New Issue
Block a user