Skip to content

Commit

Permalink
Fixed unable to import a skin because of markupEnabled and flip flags…
Browse files Browse the repository at this point in the history
… in font.
  • Loading branch information
raeleus committed Jan 31, 2023
1 parent ffb1832 commit e0990dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Skin Composer Version 56 ###
* Fixed font scaling issues.
* Fixed unable to import a skin because of markupEnabled and flip flags in font.

### Skin Composer Version 55a ###
* Fixed build error preventing Skin Composer from starting.
Expand Down
2 changes: 1 addition & 1 deletion core/src/com/ray3k/skincomposer/data/JsonData.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Array<String> readFile(FileHandle fileHandle) throws Exception {
if (!fontCopy.parent().equals(fontFile.parent())) {
fontFile.copyTo(fontCopy);
}
FontData fontData = new FontData(font.name(), font.getInt("scaledSize", -1), font.getBoolean("markupEnabled"), font.getBoolean("flip"), fontCopy);
FontData fontData = new FontData(font.name(), font.getInt("scaledSize", -1), font.getBoolean("markupEnabled", false), font.getBoolean("flip", false), fontCopy);

//delete fonts with the same name
for (FontData originalData : new Array<>(fonts)) {
Expand Down

0 comments on commit e0990dc

Please sign in to comment.