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.width * ratio,
|
||||||
img.height * ratio
|
img.height * ratio
|
||||||
);
|
);
|
||||||
ctx.font = `${fontSize}px YurukaStd`;
|
ctx.font = `${fontSize}px YurukaStd, SSFangTangTi`;
|
||||||
ctx.lineWidth = 9;
|
ctx.lineWidth = 9;
|
||||||
ctx.save();
|
ctx.save();
|
||||||
|
|
||||||
|
|||||||
BIN
src/fonts/ShangShouFangTangTi.woff2
Normal file
BIN
src/fonts/ShangShouFangTangTi.woff2
Normal file
Binary file not shown.
@@ -7,4 +7,9 @@ body {
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'YurukaStd';
|
font-family: 'YurukaStd';
|
||||||
src: local('YurukaStd'), url(./fonts/YurukaStd.woff2) format('woff2');
|
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