简体   繁体   English

libgdx如何添加FreeType扩展名?

[英]Libgdx how can I add FreeType extension?

I have tried with the maven thing, but it won't work.I probably wrote the wrong line in the dependencies or something. 我已经尝试过Maven了,但是它行不通,我可能在依赖项之类的地方写错了一行。 This is the link maven repository . 这是链接maven存储库

Easy way: Make sure you checked the "Freetype" extension in the gdx-setup app, before project generation. 简单方法:在生成项目之前,请确保已在gdx-setup应用程序中选中了“ Freetype”扩展名。

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: 在根项目的build.gradle中,只需添加以下依赖项:

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: IOS:

    compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"

html: not compatible, im afraid html:不兼容,我很害怕

core: 核心:

    compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"

Adding gdx freetype extension is a very easy process . 添加gdx freetype扩展是一个非常简单的过程。 please go through the link . 请通过链接。 you can definitely implement it. 您绝对可以实现它。

freetype extension 自由类型扩展

If you want to implement the tty fonts, just download the latest version of "hiero" 如果要实现tty字体,只需下载最新版本的“ hiero”

By using "hiero" you can easily make the fonts as per your design skills. 通过使用“ hiero”,您可以根据设计技能轻松制作字体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM