强迫性字体使用
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

@ -1 +1,5 @@
@import 'tailwindcss';
@theme {
--font-sans: "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

View File

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="zh-hans">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

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>