かってきままな日々
2025-07-15 (Tu) [長年日記]
_ wezterm で italic の「魔」が小さくなる問題
Gemini と一緒に解決してみた。
フォントまわりの設定を↓こんな感じにしたらなおった。
config.font = wezterm.font_with_fallback({
'Noto Sans Mono CJK JP',
'Noto Color Emoji',
})
-- italic 用の設定
-- こうしないと、echo -e "This is \e[3m魔法\e[23m text." で「魔」だけ小さくなる。
config.font_rules = {
{
italic = true,
font = wezterm.font_with_fallback({
{
family = 'Noto Sans CJK JP',
style = 'Italic',
},
}),
},
}
gemini、「セッションを保存して」で GEMINI.md に保存してくれるけど、 いろいろこぼしてて、次に起動した時、かなり忘れてるんだよなぁ。
## Gemini Added Memories
- The user is troubleshooting a wezterm issue where some Japanese characters (e.g., '魔') become very small when italicized. We have tried modifying wezterm.lua to use `synthesize_italic_from_regular`, specifying font weight/style, and rebuilding the font cache with `fc-cache -fv`, but the problem persists.