question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is gdx-freetype can load NotoColorEmoji font on android

See original GitHub issue

I try to load NotoColorEmoji font on android with gdx-freetype but have the following error:

E/AndroidRuntime(26776): com.badlogic.gdx.utils.GdxRuntimeException: Couldn't se
t size for font
E/AndroidRuntime(26776):        at com.badlogic.gdx.graphics.g2d.freetype.FreeTy
peFontGenerator.setPixelSizes(FreeTypeFontGenerator.java:264)
E/AndroidRuntime(26776):        at com.badlogic.gdx.graphics.g2d.freetype.FreeTy
peFontGenerator.<init>(FreeTypeFontGenerator.java:118)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bangivecommented, Jan 7, 2016

I’ve tried to search on forums and issues on this repo but found no related info. Use the newest gdx-setup app.

Here is my project for you to investigate. It does not contain libraries so please run on command line gradlew.bat clean --no-daemon to download them.

Here is the logcat error:

--------- beginning of system
E/AndroidRuntime(17128): FATAL EXCEPTION: GLThread 18902
E/AndroidRuntime(17128): Process: com.mygdx.testemoji, PID: 17128
E/AndroidRuntime(17128): com.badlogic.gdx.utils.GdxRuntimeException: Couldn't se
t size for font
E/AndroidRuntime(17128):        at com.badlogic.gdx.graphics.g2d.freetype.FreeTy
peFontGenerator.setPixelSizes(FreeTypeFontGenerator.java:264)
E/AndroidRuntime(17128):        at com.badlogic.gdx.graphics.g2d.freetype.FreeTy
peFontGenerator.<init>(FreeTypeFontGenerator.java:118)
E/AndroidRuntime(17128):        at com.mygdx.testemoji.SmartFontGenerator.genera
teFontWriteFiles(SmartFontGenerator.java:91)
E/AndroidRuntime(17128):        at com.mygdx.testemoji.SmartFontGenerator.create
Font(SmartFontGenerator.java:79)
E/AndroidRuntime(17128):        at com.mygdx.testemoji.Emoji.create(Emoji.java:2
1)
E/AndroidRuntime(17128):        at com.badlogic.gdx.backends.android.AndroidGrap
hics.onSurfaceChanged(AndroidGraphics.java:243)
E/AndroidRuntime(17128):        at android.opengl.GLSurfaceView$GLThread.guarded
Run(GLSurfaceView.java:1550)
E/AndroidRuntime(17128):        at android.opengl.GLSurfaceView$GLThread.run(GLS
urfaceView.java:1278)

Do i need to provide more info?

0reactions
MrStahlfelgecommented, Aug 30, 2020

Interesting project, will have a look!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Noto Color Emoji - Google Fonts
Noto Color Emoji is an open-source emoji font. It supports the latest Unicode specification (15.0) and features 3,664 emoji. Supported writing systems. Emoji....
Read more >
NotoColorEmoji.ttf not a valid font in Windows #43 - GitHub
I've tried installing NotoColorEmoji.ttf in Windows 10 and it is not a valid font to install. From https://www.google.com/get/noto/ I've ...
Read more >
Gdx freetype - libGDX
The solution to your problem is the gdx-freetype extension: ship only lightweight .ttf files with your game; generate a BitmapFont of your desired...
Read more >
Loading Colored Fonts With FreeType - Stack Overflow
While Noto Color Emoji works just fine (because of embedded bitmaps), I'd like to also support Segoe UI Emoji, that is using COLR/CPAL...
Read more >
libGDX Quick Tips #1 - Free Type Fonts - YouTube
This quick tutorial will demonstrate how to use external fonts in your android game with the libGDX extension: FreeType. Use .ttf fonts ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found