Skip to content

Commit 9d7526b

Browse files
committed
Prepare for release v4.3.0
1 parent 48a30b1 commit 9d7526b

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [4.3.0]
7+
8+
- Fallback fonts/multiple fonts files to support dynamic font changing needed for Chinese and other logographic
9+
languages.
10+
- Upgrade gradle + robovm + android plugin to latest versions.
11+
- Bugfix when adding a new item to a Ink list.
12+
-
13+
614
## [4.2.0]
715

816
- EDITOR: Latest Inklecate and build JDK can be downloaded from the editor.

adventure-editor/src/main/resources/versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ androidGradlePluginVersion=8.1.0
33
bladeInkVersion=1.1.2
44
libgdxVersion=1.12.0
55
roboVMVersion=2.3.20
6-
version=4.2.1-SNAPSHOT
6+
version=4.3.0

blade-engine/src/com/bladecoder/engine/ui/BladeSkin.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
public class BladeSkin extends Skin {
3838

39-
private final List<FreeTypeFontGenerator> fontGenerators = new ArrayList<>();
39+
private List<FreeTypeFontGenerator> fontGenerators;
4040

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

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

175+
if (fontGenerators == null)
176+
fontGenerators = new ArrayList<>();
177+
175178
fontGenerators.add(generator);
176179

177180
} else {
@@ -266,6 +269,9 @@ public Drawable newDrawable(Drawable drawable, Color tint) {
266269
public void dispose() {
267270
super.dispose();
268271

272+
if (fontGenerators == null)
273+
return;
274+
269275
for (FreeTypeFontGenerator generator : fontGenerators) {
270276
generator.dispose();
271277
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=4.2.1-SNAPSHOT
1+
version=4.3.0
22
libgdxVersion=1.12.0
33
roboVMVersion=2.3.20
44
androidAPILevel=33

0 commit comments

Comments
 (0)