Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seems emoji chars not fixed width? #17

Closed
yurenchen000 opened this issue Aug 5, 2023 · 2 comments
Closed

seems emoji chars not fixed width? #17

yurenchen000 opened this issue Aug 5, 2023 · 2 comments

Comments

@yurenchen000
Copy link

test text

without emoji it's fine:

| Month月  | Savings金额 | test |
| -------- |:-----------:| ----:|
| January  |  啊啊$250   |   ok |
| February |    哦$80    |   ok |
| March    |   呃$420    | pass |
|          |      -      |      |
|          |             |      |

but with emoji chars, width broken

| Month月  | Savings金额 | test |
| -------- |:-----------:| ---- |
| January  |  😱😱$250   | ❌   |
| February |    🙂$80    | ✅   |
| March    |    $420     | ❌   |
|          |      -      |      |
|          |             |      |

preview

in gnome-editor VS kitty-terminal
// in terminal is fixed witdh render, display result indicate the test text is aligned

mono_test-

Am I missing something?

what should I do?

@laishulu
Copy link
Owner

laishulu commented Aug 5, 2023

be5invis/Sarasa-Gothic#44 (comment)

Sarasa字体里面是没有emoji的。你的终端里,是fallback到别的字体了。

在emacs里面指定本字体的话,会发现emoji找不到字体。
Snipaste_2023-08-05_12-35-21

但是你看字的话,

Snipaste_2023-08-05_12-46-29

@laishulu laishulu closed this as completed Aug 5, 2023
@yurenchen000
Copy link
Author

yurenchen000 commented Aug 6, 2023

@laishulu

Thanks for reply.

Your point is clarify,
The Sarasa font is no responsibility for the width of emoji characters.


As a end user I still want to figure out a solution that
make emoji got same width with CJK chars (in Sarasa).

Any advice would be appreciated.


For now, all I know is
Patch my text editor or web application,
Renders each emoji chars one by one in their own cells (to limit char width).
like the common practice in terminal programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants