新月の開発

24869930 anonymous 2025-11-07 13:57
"Inconsolata" <-- 固定幅英数
"M PLUS 2" <-- 日本語フォント
"M PLUS Rounded 1c" <-- 日本語少し丸いフォント(タイトル用)

上記のGoogleのWebフォントを使うよう、headerとcssを書き換えるパッチを作ってみました。
見やすいfontなどあれば共有してもらえると嬉しいです。

diff --git a/template/header.txt b/template/header.txt
index bcd0bc9..313a597 100644
--- a/template/header.txt
+++ b/template/header.txt
@@ -11,6 +11,9 @@
 {% if deny_robot %}
   <meta name="robots" content="NOINDEX" />
 {% endif %}
+  <link rel="preconnect" href="https://fonts.googleapis.com">
+  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+  <link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=M+PLUS+2:wght@100..900&family=M+PLUS+Rounded+1c&display=swap" rel="stylesheet">
   <meta name="referrer" content="no-referrer-when-downgrade" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="author" href="https://www.shingetsu.info/" />
diff --git a/www/00default.css b/www/00default.css
index b762340..78ce09d 100644
--- a/www/00default.css
+++ b/www/00default.css
@@ -3,10 +3,14 @@
  */
 body {
     background-color: #fff;
+    font-family: "Inconsolata", "M PLUS 2", sans-serif;
+    font-weight: normal;
+    font-style: normal;
 }
 h1, h1 a {
     color: #00e;
     text-decoration: none;
+    font-family: "M PLUS Rounded 1c", sans-serif;
 }
 dt {
     background-color: #ccf;
@@ -96,5 +100,6 @@ form#tagform {
 }
 dd {
     font-size: 16px;
-    font-family: "MS PGothic", Mona, IPAMonaPGothic, sans-serif;
+    font-family: "Inconsolata", "M PLUS 2", sans-serif;
 }
+

Top of this page. | <<last

limit: 1536KB

(新月の開発/4/0.0MB)

Powered by shinGETsu.