Reputation: 157
I have tried with the maven thing, but it won't work.I probably wrote the wrong line in the dependencies or something. This is the link maven repository.
Upvotes: 2
Views: 4164
Reputation: 479
Adding gdx freetype extension is a very easy process . please go through the link . you can definitely implement it.
If you want to implement the tty fonts, just download the latest version of "hiero"
By using "hiero" you can easily make the fonts as per your design skills.
Upvotes: -1
Reputation: 460
Easy way: Make sure you checked the "Freetype" extension in the gdx-setup app, before project generation.
Otherwise you can add it to your already created project the following way:
In build.gradle of your root project, just add the following dependencies:
desktop:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
android:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
ios:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
html: not compatible, im afraid
core:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
Upvotes: 7