-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bottom of emoji and text misaligned on linux #18
Comments
Might it be that hieroglyph is using different font and different offset from baseline? |
But I use the same font file, how can this happen? |
Good question! Technically, fonts can provide different metrics (baseline, ascend, descend) for diffrent OSes. From https://www.maxkohler.com/posts/2022-02-19-fixing-vertical-metrics/
I wonder if that’s the case here. You can try using something like this https://github.com/source-foundry/font-line to print the metrics (but be sure to figure out which exact font is used for rendering first) |
Thank you for helping me find this article. Although I modified ascent and percent in OS/2 according to the method in the article, it still doesn't work. However, I found the each emoji has a offsetY argument in the TTX file, and realized the alignment by modifying this. 😄 |
When I draw text with emoji together on Paragraph,I find bottom alignment of emoji and text is fine on mac,but not on linux.
on mac:
on linux:
I would like to know what is causing this and how to make it behave the same on linux as it does on mac.
ps. I use the same font(AppleColorEmoji.ttc on mac) on both two system.
The text was updated successfully, but these errors were encountered: