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

Text#addFontStyle works incorrectly (Edge) #512

Open
creole opened this issue Mar 24, 2018 · 3 comments
Open

Text#addFontStyle works incorrectly (Edge) #512

creole opened this issue Mar 24, 2018 · 3 comments

Comments

@creole
Copy link

creole commented Mar 24, 2018

This Issue is about (pick one, ✏️ delete others)

  • A bug in the API:
    • Phaser version(s): 2.10.2
    • Live example: https://codepen.io/creole/pen/oqeERX
    • What should happen: in Firefox, Chrome and Opera "the" is in italics, "dude" has normal style
    • What happens instead: in Edge "the dude" is in italics

I haven't tested text.addFontWeight and text.addStrokeColor.

@samme
Copy link
Collaborator

samme commented Mar 24, 2018

There is a similar problem with font weights in Safari. I never figured it out. https://codepen.io/samme/pen/EmWVmM

@creole
Copy link
Author

creole commented Mar 24, 2018

The font weights in your pen look okay in Edge.

@samme samme changed the title Edge text.addFontStyle Text#addFontStyle works incorrectly (Edge) Apr 21, 2018
@mdonoughe
Copy link

I don't see the original problem with the italics in Edge 42.17134.1.0, but the font weight is heavier in Chrome 70 and Firefox 63. In the second example, Edge and Chrome seem to sometimes forget the font weight after one character, but Firefox is okay.

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

No branches or pull requests

3 participants