Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freetype crashes #100

Closed
SvenWollinger opened this issue Jun 6, 2023 · 1 comment
Closed

freetype crashes #100

SvenWollinger opened this issue Jun 6, 2023 · 1 comment

Comments

@SvenWollinger
Copy link

Hello,
from what i can tell im not missing anything from the example, outside of the fact that im using kotlin.
Im getting this error message in my browser when FreeType is initialized:

Ive used gdx-liftoff to generate my project and the teavm module has the neccessary extension to work with freetype.
Im using my generator like this:

val params = FreeTypeFontGenerator.FreeTypeFontParameter().apply {
    this.size = size
    borderColor = com.badlogic.gdx.graphics.Color.BLACK
    borderWidth = 2F
}

val font: BitmapFont
FreeTypeFontGenerator(Gdx.files.internal("font.ttf")).apply {
    font = generateFont(params)
    dispose()
}

But i doubt that that is the issue, as it crashes even without the generator, when im manually calling FreeType.initFreeType();
Id be very thankfull if you could point me in the right direction here :)

@dragbone
Copy link

dragbone commented Sep 8, 2023

Hey @SvenWollinger, if you still have the same problem try updating to the latest version, that has fixed it for me (b4 -> b6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants