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
While we can do something like #text(cjk_font_size)[복소수] as a hacky way to fix the issue, a single place to target all cjk fonts would be very helpful for multi-language documents.
Reacted by Alexander Wörndl, Lucas C., OrangeX4, bluss, Y.D.X., chiefaccelerators, pomp, Cierra-Runis, David, Jon and 1 more
Could this be an alternate solution for raw and its font? There is no reason the raw element should have a default 0.8em text size - instead its mono font could "load in at a smaller size"?
Could this be an alternate solution for raw and its font? There is no reason the raw element should have a default 0.8em text size - instead its mono font could "load in at a smaller size"?
Sort of, but it's worth mentioning that most mono fonts are somehow just visually too large, so as soon as you switch, you'd typically have to include the 0.8em (or whatever factor) yourself.
Could this be an alternate solution for raw and its font? There is no reason the raw element should have a default 0.8em text size - instead its mono font could "load in at a smaller size"?
Sort of, but it's worth mentioning that most mono fonts are somehow just visually too large, so as soon as you switch, you'd typically have to include the 0.8em (or whatever factor) yourself.
Can we also add baseline settings per font? Different Chinese font vendors often set their fonts at different "baselines" (because baseline isn't really a thing in Chinese), so they can be misaligned when used together. And many of them have terrible Latin type design, which makes it a necessity to use a different Latin font and adjust baselines accordingly:
Activity
bluss commentedon Jul 2, 2025
Could this be an alternate solution for
rawand its font? There is no reason the raw element should have a default0.8emtext size - instead its mono font could "load in at a smaller size"?laurmaedje commentedon Jul 2, 2025
Sort of, but it's worth mentioning that most mono fonts are somehow just visually too large, so as soon as you switch, you'd typically have to include the 0.8em (or whatever factor) yourself.
Enivex commentedon Jul 2, 2025
CSS seems to have something relevant here
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size-adjust
chiefaccelerators commentedon Aug 20, 2025
Can we also add baseline settings per font? Different Chinese font vendors often set their fonts at different "baselines" (because baseline isn't really a thing in Chinese), so they can be misaligned when used together. And many of them have terrible Latin type design, which makes it a necessity to use a different Latin font and adjust baselines accordingly:
tjwhang commentedon Dec 2, 2025
Currently the easiest workaround I can possibly find for size and baselines before this is changed is to do something like this:
before:
after: