强迫性字体使用
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'; @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> <!doctype html>
<html lang="en"> <html lang="zh-hans">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />

View File

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

View File

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