TheOriginalAyaka / sekai-stickers

Project Sekai sticker maker
https://st.ayaka.one
MIT License
426 stars 91 forks source link

Font size inconsistency between YurukaStd and SSFangTangTi #18

Open Honoka55 opened 1 year ago

Honoka55 commented 1 year ago

Thank you for developing this. I noticed that the font sizes of the two fonts are inconsistent at the same font size. SSFangTangTi is smaller than YurukaStd, which causes the display of Chinese to be uneven when there are both simplified Chinese exclusive characters and characters that are also in Japanese. I guess the characters that are fallbacked to SSFangTangTi need to be scaled up.

To illustrate this problem, I have attached a screenshot that showcases four examples:

  1. “很开心” (That was fun): The character “开” is unique to simplified Chinese and appears smaller than the surrounding Japanese characters.
  2. “怎么会” (Oh no): The character “么” is exclusive to simplified Chinese and appears smaller than the surrounding Japanese characters.
  3. “很可爱对吧” (Ain't I the cutest): All three characters “爱对吧” are exclusive to simplified Chinese and appear smaller than the surrounding Japanese characters.
  4. “我很喜欢这个项目仓库” (I like this repository very much): The characters “欢”“这”“项”“仓库” are exclusive to simplified Chinese and appear smaller than the surrounding Japanese characters.

Screenshot:

image

TheOriginalAyaka commented 1 year ago

Hello there, thanks for sharing this, I see where the issue is but I can't think of any easy fix for now, as I don't do much front-end, I don't know if I can set different sizes for each font used, I have to do some research and try when I have time.