【发布时间】:2016-04-18 14:05:35
【问题描述】:
我已经尝试过使用 maven 的东西,但它不起作用。我可能在依赖项或其他东西中写错了行。 这是链接maven repository。
【问题讨论】:
标签: java gradle libgdx freetype
我已经尝试过使用 maven 的东西,但它不起作用。我可能在依赖项或其他东西中写错了行。 这是链接maven repository。
【问题讨论】:
标签: java gradle libgdx freetype
简单方法:确保在项目生成之前检查 gdx-setup 应用中的“Freetype”扩展。
否则,您可以通过以下方式将其添加到您已经创建的项目中:
在你的根项目的 build.gradle 中,只需添加以下依赖项:
桌面:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
机器人:
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:不兼容,恐怕
核心:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
【讨论】:
添加 gdx freetype 扩展是一个非常简单的过程。请通过链接。你绝对可以实现它。
如果你想实现tty字体,只需下载最新版本的“hiero”
通过使用“hiero”,您可以根据自己的设计技能轻松制作字体。
【讨论】: