You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// C
汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。\
天生丽质难自弃,一朝选在君王侧。回眸一笑百媚生,六宫粉黛无颜色。
// J
日本語の音韻は、「っ」「ん」を除いて母音で終わる開音節言語の性格 \
が強く、また標準語を含め多くの方言がモーラを持つ。
// K
(The Korean punctuations are rendered okay, because it uses European punctuations.)
대한항공은 대한민국 국적의 항공사이며, 항공 동맹체인 스카이팀의 창립 항공사로 인천국제공항과 김포국제공항을 허브 공항으로 두고 있다.
was rendered correctly in PDF locally, with the Typst CLI:
but the web app rendered the punctuations differently. Specifically, they are put at the middle of the character boxes, instead of at the corner:
I'm not sure this is a font issue, though -- you may notice the glyph's fonts are different in the local PDF vs the web app (for example, vs ). The PDF version is generally more common in modern usage.
Maybe @peng1999 has some insights, but this issue only manifests on the web app so maintainers's involvement might be necessary.
This is font issue. The default CJK fallback font in web app is TW or HK variant of Noto CJK. You should select CN and JP font variant respectively in you document to get right glyphs.
Reacted by Brynne Taylor, Leedehai and Wenzhuo Liu
Nice, thx! Probably a question to maintainers: wondering whether this is intentional to have different default fonts in the local PDF vs the web app? That seems a bit surprising to users, but there may be other reasons I didn't know.
A simple idea is to add a language and region option in template wizard. Then a single #set text(lang: "zh") will fix this issue without touching font fallback machanism.
The default fonts are the same. Here, it's that font fallback happens (which picks any suitable font from all that are available). And the set of available fonts differs in the web app and your local operating system (because we use your system fonts instead of downloading our own 2GB of fonts).
Activity
Leedehai commentedon May 21, 2023
(Sorry, I didn't mean to put reknih@ on the spot but it appears GitHub automatically assigns this issue)
Enivex commentedon May 21, 2023
That intentionally happens on any issue with the web app label.
peng1999 commentedon May 21, 2023
This is font issue. The default CJK fallback font in web app is TW or HK variant of Noto CJK. You should select CN and JP font variant respectively in you document to get right glyphs.
Leedehai commentedon May 22, 2023
Nice, thx! Probably a question to maintainers: wondering whether this is intentional to have different default fonts in the local PDF vs the web app? That seems a bit surprising to users, but there may be other reasons I didn't know.
peng1999 commentedon May 22, 2023
A simple idea is to add a language and region option in template wizard. Then a single
#set text(lang: "zh")will fix this issue without touching font fallback machanism.laurmaedje commentedon May 22, 2023
The default fonts are the same. Here, it's that font fallback happens (which picks any suitable font from all that are available). And the set of available fonts differs in the web app and your local operating system (because we use your system fonts instead of downloading our own 2GB of fonts).
laurmaedje commentedon May 22, 2023
Language already exists. Adding region seems sensible.
[-]Punctuation issue with CJK characters, only in web app[/-][+]Add region option to template wizard[/+]laurmaedje commentedon Nov 30, 2024
Closing this as we don't plan to further develop the template wizard. I doubt many people are still using it.