Missing FreeTypeSkinLoader class
Closed this issue · 1 comments
martinboue commented
Stripe version : 1.4.1
GDX version : 1.11.0
Problem :
I'm trying to implement FreeTypeFont and Stripe to an existing project but I can't load the Skin with my AssetManager.
I want to configure the loader for FreeTypeSkin but the class FreeTypeSkinLoader
seems to be missing from the stribe package.
According to those documentations :
- https://github.com/raeleus/skin-composer/wiki/Creating-FreeType-Fonts#using-a-custom-serializer
- https://github.com/raeleus/stripe#readme
in order to implement FreeTypeFont I just need to do :
AssetManager assetManager = new AssetManager();
assetManager.setLoader(Skin.class, new FreeTypeSkinLoader(assetManager.getFileHandleResolver()));
assetManager.load("skin-name.json", Skin.class);
But the FreeTypeSkinLoader
cannot be resolved.
Here are my dependencies, build.gradle (root) :
...
allprojects {
...
repositories {
...
maven { url "https://jitpack.io" }
}
}
project(":desktop") {
...
dependencies {
...
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
}
project(":core") {
...
dependencies {
...
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
implementation 'com.github.raeleus.stripe:stripe:1.4.1'
}
}
Am I missing something?
Thanks!
martinboue commented
OK my bad, I implemented the wrong project. I had to change my core dependency in build.gradle from :
implementation 'com.github.raeleus.stripe:stripe:1.4.1'
to :
implementation 'com.github.raeleus.stripe:freetype:1.4.1'
Issue is resolved for me