-
Notifications
You must be signed in to change notification settings - Fork 190
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
Font change #629
Comments
You don't need to change the library.
to your sketch and call
directly from the code. |
Thank you for your answer, this is really useful, but these work well for Western text repositories because they are relatively small,But for Chinese, it's not enough, like in U8G2, <const uint8_t u8g2_font_wqy16_t_gb2312[308472] U8G2_FONT_SECTION("u8g2_font_wqy16_t_gb2312") >.SO,Therefore, instead of using the ***.H file, the ***.C file is used, so the method just now cannot be used |
In your first comment you wrote that you have to add #include <Font.h> to the library and nothing about including the .c file. |
No C file is added, which is my problem, because the current library, if you want to change the font, only add H file WS2812's library files previously. #include <Adafruit_GFX.h> void setup() { When I added this statement u8gf.begin(matrix),I can just use it
Now when I use this method #include <ESP32-VirtualMatrixPanel-I2S-DMA.h> void setup() { report an error:D:\我的资料库\Documents\Arduino\ChainedPanelsESP32S\ChainedPanelsESP32S.ino: In function 'void setup()': |
As far as I see, your problem is not with the font. The library |
#include <U8g2_for_Adafruit_GFX.h> u8g2Fonts.begin(*virtualDisp); I tried it, and that's it |
Hello author
I am from China, the following text is from the machine translation。
When using this library in China, you need to display Chinese characters,
Now in order to change the font, I need to change the file,《ESP32-VirtualMatrixPanel-I2S-DMA.h》,#include <Fonts/XXXXX.h>andthis->display->setFont(&XXXXX),It's very inconvenient.
The Library currently relies on the Adafruit GFX Library,At the same time, there is a U8g2 for Adafruit GFX, we can call U8G2 font。
Can you add this function to facilitate the use of any font。
Thank you
The text was updated successfully, but these errors were encountered: