Skip to content

Commit

Permalink
Prepare for release v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bladecoder committed Oct 19, 2023
1 parent 48a30b1 commit 9d7526b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.3.0]

- Fallback fonts/multiple fonts files to support dynamic font changing needed for Chinese and other logographic
languages.
- Upgrade gradle + robovm + android plugin to latest versions.
- Bugfix when adding a new item to a Ink list.
-

## [4.2.0]

- EDITOR: Latest Inklecate and build JDK can be downloaded from the editor.
Expand Down
2 changes: 1 addition & 1 deletion adventure-editor/src/main/resources/versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ androidGradlePluginVersion=8.1.0
bladeInkVersion=1.1.2
libgdxVersion=1.12.0
roboVMVersion=2.3.20
version=4.2.1-SNAPSHOT
version=4.3.0
8 changes: 7 additions & 1 deletion blade-engine/src/com/bladecoder/engine/ui/BladeSkin.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class BladeSkin extends Skin {

private final List<FreeTypeFontGenerator> fontGenerators = new ArrayList<>();
private List<FreeTypeFontGenerator> fontGenerators;

public BladeSkin(FileHandle skinFile) {
super(skinFile);
Expand Down Expand Up @@ -172,6 +172,9 @@ public BitmapFont read(Json json, JsonValue jsonData, @SuppressWarnings("rawtype

EngineLogger.debug(path + " TIME (ms): " + (System.currentTimeMillis() - initTime));

if (fontGenerators == null)
fontGenerators = new ArrayList<>();

fontGenerators.add(generator);

} else {
Expand Down Expand Up @@ -266,6 +269,9 @@ public Drawable newDrawable(Drawable drawable, Color tint) {
public void dispose() {
super.dispose();

if (fontGenerators == null)
return;

for (FreeTypeFontGenerator generator : fontGenerators) {
generator.dispose();
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.2.1-SNAPSHOT
version=4.3.0
libgdxVersion=1.12.0
roboVMVersion=2.3.20
androidAPILevel=33
Expand Down

0 comments on commit 9d7526b

Please sign in to comment.