Hacker News new | ask | show | jobs
by Alex-Programs 537 days ago
+1 to this, they're an excellent little feature. Just bear in mind that the rendering differs substantially by browser, and some fonts (for the ruby text) work better than others. I'd recommend overriding as much as possible, including the font of the ruby text.
1 comments

I primarily test with Chrome and Firefox (Epiphany, occasionally). And my usecase requires that I provide downloadable fonts as not all fonts have nice-looking Devanagari renderings. So, the overriding happens naturally.
Yeah, I also target Chrome and Firefox. I'll occasionally test on Edge.

I had a user report that pinyin was looking funny on Reddit. Turns out they use a system font stack which includes Verdana (and so only shows up on Windows), and Verdana does really poorly with Pinyin ruby (iirc it was a generic ruby thing, not just Pinyin).

I just replaced it with a custom system font stack without Verdana.

Not a difficult fix, but something to be aware of.