Ayu fixes CJK on Mac

I realised that CJK are broken on Obsidian only when I was working on their astrology stuff.

CJK don’t italicise because there’s no Italy there.
Nor do they slant it because they’re decent people.

/* default app.css */
body {
  --font-default: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif;
}

Obsidian catch-all fails to catch CJK, then they fall to some arbitrary Chromium default behaviour.

It might work with that "Microsoft YaHei Light" on Windows? I didn’t check.

/* Ayu Light & Mirage */
body {
+ --default-font: Songti SC, AppleMyungjo;
+ font-synthesis: none;
}

--default-font sets some fallback serif fonts that come with macOS. font-synthesis prevents the browser from conjuring up blasphemies.

Now there’s no italic for CJK. And the fallback fonts don’t have granular weights. But on Ayu Light & Mirage, you can tell them apart by colours. Enjoy!

Now they are bold :slight_smile:


More for reference