diff --git a/src/App.jsx b/src/App.jsx index d091be9..f8518b6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -94,7 +94,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(); diff --git a/src/fonts/ShangShouFangTangTi.woff2 b/src/fonts/ShangShouFangTangTi.woff2 new file mode 100644 index 0000000..88d9b6c Binary files /dev/null and b/src/fonts/ShangShouFangTangTi.woff2 differ diff --git a/src/index.css b/src/index.css index 69a1c14..d9c4d8f 100644 --- a/src/index.css +++ b/src/index.css @@ -7,4 +7,9 @@ body { @font-face { 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'); } \ No newline at end of file