Skip to content

Font Change Issue in Scroll Text Example #788

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

Open
hfarcan opened this issue Apr 30, 2025 · 3 comments
Open

Font Change Issue in Scroll Text Example #788

hfarcan opened this issue Apr 30, 2025 · 3 comments
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX

Comments

@hfarcan
Copy link

hfarcan commented Apr 30, 2025

Hello, thank you again for providing these wonderful libraries.
I am experiencing an issue with changing the font in the Scroll Text example. I am using the FOUR_SCAN_40_80PX_HFARCAN from the Panel Scan Types of the Virtual Matrix.
When I set a new font using gfx_layer_fg.setFont(...), I am unable to display anything on the screen. When the font is null, the text shows up fine.
Could it be that changing the font is currently not supported, or am I missing something?

@mrcodetastic mrcodetastic added the not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX label Apr 30, 2025
@mrcodetastic
Copy link
Owner

Thank for your kind words. Have you read the AdafruitGFX guidance on how to use fonts? You need to load the font as well.

@hfarcan
Copy link
Author

hfarcan commented Apr 30, 2025

You need to load the font as well.

Yes, I can use my custom fonts in my normal application. When I set the font with a GFX_Lite layers, I cannot get an image with custom font.

@mrcodetastic
Copy link
Owner

Could you please share example code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX
Projects
None yet
Development

No branches or pull requests

2 participants