TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do Chinese fonts work?

1 pointsby barbinbradabout 2 years ago

2 comments

PaulHouleabout 2 years ago
Font metrics are really easy because they are all square. I wrote a rendering engine on top of Pillow for vertically oriented Japanese text and people are often impressed that I did, but it was not hard at all -- the one thing wrong with it is that it doesn&#x27;t do a great job of rendering the occasional Roman character which shows up in the proper names that I set (e.g. the second season of the <i>Sailor Moon</i> anime is written as &quot;セーラームーンR&quot; in Japanese)<p>Kerning for Serifed Roman characters is devilishly hard, enough that a lot of people have given up on using serif display fonts because they never look right. I thought the problem wasn&#x27;t so bad 20 years ago and I don&#x27;t know if I should blame a patent troll or if I am just pickier than I was.
abudabi123about 2 years ago
The shaping engine takes text, maps codepoints to glyphs in the font, textual sequences of codepoints then appear on screen in script form obeying rules.<p><a href="https:&#x2F;&#x2F;harfbuzz.github.io&#x2F;why-do-i-need-a-shaping-engine.html" rel="nofollow">https:&#x2F;&#x2F;harfbuzz.github.io&#x2F;why-do-i-need-a-shaping-engine.ht...</a>