-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Android text lineheight doesn't match Web or Windows #1062
Comments
Here's how I solve this problem with createjs. var cache = {} I am adding gold FontFace right away. var isIE =false || !!document.documentMode; if(!tarayiciEdge){
} |
Thanks for the reply, that got me pointed in a direction that yielded more testing results. In the screenshots above, I'm using "ideographic" baseline. If I switch to "alphabetic" baseline, then they match. Unfortunately, my project requires that I use "ideographic" baseline. The fact that "alphabetic" matches up but "ideographic" doesn't, does that help identify the cause of this issue? |
Expected Behavior
Black text should cover up red images:
Current Behavior
Black text only covers up some of the red images when viewed in Android:
Steps to Reproduce
Create several text elements in createJS and set lineheight values and set color to red. Then use PIXI to render text. Take image of canvas and set as background. Then change all text to black. Black text should cover up red images.
Environments
Latest CreateJS
PixiJS 5.3.4
Windows 10 Chrome 89
Android 9
When viewing in Chrome or Chromium it appears fine. When viewing in Android, the lineheight values are off for some fonts.
The text was updated successfully, but these errors were encountered: