更新字体

This commit is contained in:
cxykevin 2024-08-25 17:40:52 +08:00
parent 631e59297a
commit cadebaba9f
5 changed files with 29 additions and 6 deletions

View File

@ -11,7 +11,9 @@ additional-css = [
"theme/css/mdui.css",
"theme/css/highlight.min.css",
"theme/css/page.css",
"theme/css/font.css",
"theme/font/icons.woff2",
"theme/font/noto.otf",
]
additional-js = [
"theme/js/mdui.global.js",

21
theme/css/font.css Normal file
View File

@ -0,0 +1,21 @@
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 300;
src: local("NotoSansCJK-Medium") url('../font/noto.otf') format('otf');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 300;
src: local("SourceCodePro") url('../font/sourcecodepro.woff2') format('woff2');
}
body {
font-family: 'Noto Sans', sans-serif !important;
}
code {
font-family: 'Source Code Pro', 'Courier New', monospace !important;
}

BIN
theme/font/noto.otf Normal file

Binary file not shown.

Binary file not shown.

View File

@ -19,7 +19,7 @@
<!-- MDUI CSS&JS -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="renderer" content="webkit" />
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/mdui.css">
<script src="{{ ../path_to_root }}theme/js/mdui.global.js"></script>
@ -27,17 +27,16 @@
<!-- 搜索引擎描述 -->
<meta name="description" content="Study Area CN {{ description }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff">
<meta name="keywords"
content="Study-area, study-area, study-area-cn Study Area CN, study area cn, 酷学园, 酷学园 CN , 酷!学园, netman, linux, mdbook, rockylinux">
<!-- favicon -->
{{#if favicon_svg}}
<link rel="icon" href="{{ path_to_root }}favicon.png">
<link rel="icon" href="{{ ../path_to_root }}favicon.png">
{{/if}}
{{#if favicon_png}}
<link rel="shortcut icon" href="{{ path_to_root }}favicon.png">
<link rel="shortcut icon" href="{{ ../path_to_root }}favicon.png">
{{/if}}
{{#if print_enable}}
@ -48,14 +47,15 @@
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/highlight.min.css">
<script src="{{ ../path_to_root }}theme/js/highlight.min.js"></script>
{{#if mathjax_support}}
<!-- MathJax -->
<script async src="{{ ../path_to_root }}theme/js/mathjax.js"></script>
{{/if}}
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/page.css">
<!-- 自定义字体 -->
<link href="{{ ../path_to_root }}theme/css/font.css" rel="stylesheet">
</head>
<body style="margin:0;padding:0;">