强迫性字体使用
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-10 03:20:25 +08:00
parent a485c269b0
commit 0d6aa92fa1
4 changed files with 17 additions and 1 deletions

View File

@ -41,8 +41,14 @@ onMount(async () => {
}
};
</script>
<style>
svg text[font-family=serif] {
font-family: 'Noto Serif CJK SC', 'Noto Serif SC', 'Noto Serif', serif;
}
</style>
</svelte:head>
<div id="main" class="markdown-body main" style="font-size: {sizeParam || '1.2em'}">
{source}
</div>

View File

@ -60,3 +60,9 @@ onMount(async () => {
<div id="main" class="markdown-body main" style="font-size: {sizeParam || '1.2em'}">
<SvelteMarkdown {source} />
</div>
<style>
.markdown-body {
font-family: "Noto Sans SC";
}
</style>