-
I'm running the latest HaxeFlixel and openfl and have noticed a strange issue: There's always difference of +1px on the X and Y axis in the placement of all FlxText between desktop and web versions. This is particularly noticeable on buttons. The first frame above shows the desktop vs web versions. I've tested Windows, Neko and macOS and they all behave the same. I've also tested different browsers to see if it was a text rendering difference but they display the same as well. This is also noticeable if you create a FlxText at 0, 0 and compare the difference in placement between desktop and web. For me, there's a 1x1 pixel (down and right) gap between the versions. I'm not sure if this is caused by something within my settings or not, but any confirmation or help is appreciated. @Geokureli @Gama11 may have an idea since they're more familiar with the inner workings. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
tbh, I'm not sure. My first guess is that this is a openfl/lime issue, since FlxText is drawn from an openfl textfield. Are you sure it's not a problem with the Button centering it's label? if you draw a FlxText at 0,0 does it look the same on both targets? what about centering it, what width/height values will it have? same question, but with Openfl Textfields, are they consistent across platforms? |
Beta Was this translation helpful? Give feedback.
-
Fixed by #2536 |
Beta Was this translation helpful? Give feedback.
Fixed by #2536