Skip to content

Commit

Permalink
Quartz sync: 2025-02-04 20:15:01
Browse files Browse the repository at this point in the history
  • Loading branch information
ArenaDruid committed Feb 4, 2025
1 parent 3d3b1ed commit 79b1688
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
2 changes: 1 addition & 1 deletion content/attachments/chinese-italic-kaiti.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* 定义中文斜体专用字体 */
/* Copyright (c) 2025 Github@ArenaDruid | MIT License */
/* 定义中文斜体专用字体 */
@font-face {
font-family: 'ChineseItalic';
font-style: italic;
Expand Down
32 changes: 0 additions & 32 deletions content/blog-20250204.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,42 +41,10 @@ comments: true

## 🛠️ 安装指南

### 方法一:快速安装(推荐)
1. 下载 <a href="/attachments/chinese-italic-kaiti.css" class="internal" data-slug="attachments/chinese-italic-kaiti.css" download="chinese-italic-kaiti.css">chinese-italic-kaiti.css</a>
2. 放入 Obsidian 库的 `.obsidian/snippets/` 目录
3. 启用:设置 → 外观 → CSS 代码片段 → 开启

### 方法二:手动创建
```bash
# 在 Obsidian 库中执行
mkdir -p .obsidian/snippets
cat > .obsidian/snippets/chinese-italic-kaiti.css << 'EOF'
/* 定义中文斜体专用字体 */
/* Copyright (c) 2025 Github@ArenaDruid | MIT License */
@font-face {
font-family: 'ChineseItalic';
font-style: italic;
src: local('楷体'),
local('Kaiti SC'),
local('STKaiti');
unicode-range: U+4E00-9FFF; /* 中文字符范围 */
}
/* 智能应用规则 */
em, .cm-em, i {
font-family:
-apple-system, /* 西文字体栈 */
BlinkMacSystemFont,
'Segoe UI',
Roboto,
'ChineseItalic', /* 中文斜体触发 */
sans-serif;
font-style: italic; /* 必须保持斜体状态 */
}
EOF
```

---

## 🌈 效果预览
Expand Down

0 comments on commit 79b1688

Please sign in to comment.