-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Convert from openGLCD #1263
Comments
No. Maybe the source of that font is available as ttf or bdf, then it could be converted.
Not directly. There are some helper function like https://github.com/olikraus/u8g2/wiki/u8g2reference#setclipwindow Due to the nature of u8g2 there is no bit blit (https://en.wikipedia.org/wiki/Bit_blit) which is there in GLCD to do the sub-window scrolling. Still such kind of effects are possible in u8g2 (see the scrolling examples) but they are based on redrawing and not on bit blit procedures like in GLCD. So as a result: There are no simple 1:1 commands available. You may ask: Why is there such a difference? The answer is simple: U8g2 has been designed to work without reading back the memory buffer. In fact many some displays do not allow reading back the graphics display content, so such displays are supported by u8g2 which will be never supported by GLCD. |
OK, thanks for the insight. |
I was able to convert some openGLCD fonts (the calfonts) to BDF, and then use them within u8g2. See the IPython notebook here: https://github.com/dpwe/calfonts/blob/add-bd/glcd-fontcreator-to-bdf.ipynb You should be able to use this for any of the openGLCD fonts. |
Thanks a lot. If the bdf's are available somewhere, then I also could add them to u8g2 permanently. |
That sounds great! The BDF files for the two CalFonts are here: |
there is a script which does most of the work, so I will do this, no problem. |
Sounds great. It would be nice to preserve the copyright message from the calfonts files, viz: Copyright (C) 2010 by Integrated Mapping Ltd |
Sure, indeed I will mention (as usual) the copyright:
|
Great! Thank you. |
32-127 (MM_R) |
I am converting a project from openGLCD to U8G2. Two questions:
Thank you very much for any advice you can provide.
The text was updated successfully, but these errors were encountered: