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 with default font size not initialized properly #1994

Closed
IoriBranford opened this issue Aug 20, 2018 · 1 comment
Closed

Text with default font size not initialized properly #1994

IoriBranford opened this issue Aug 20, 2018 · 1 comment
Labels
bug Broken behavior.

Comments

@IoriBranford
Copy link

IoriBranford commented Aug 20, 2018

  1. Create map with text object
  2. Set font pixel size to 16, the default
    image
  3. Copy and paste the text object

The new text's font size is not set properly.
image
In the map file, the text object data is correct (include pixel size only if not 16).

The same happens to all size 16 text if you save, close and reopen the map.

@IoriBranford IoriBranford changed the title When opening map, default font pixel size doesn't match spec Text with default font size not initialized properly Aug 21, 2018
@bjorn bjorn added the bug Broken behavior. label Aug 22, 2018
@bjorn bjorn closed this as completed in 72fc32c Aug 22, 2018
@bjorn
Copy link
Member

bjorn commented Aug 22, 2018

Thanks for the report! Turns out the pixel size ended up being not set at all when you had a text object with a non-default font family but the default pixel size.

I'm not sure if there will still be a Tiled 1.1.7, but at least the fix will be included in Tiled 1.2 Beta (the development snapshot which I'll release today).

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

No branches or pull requests

2 participants