This commit is contained in:
kraus 2022-07-10 08:23:16 +02:00
parent faa2de9854
commit 9c0dc044e9
2 changed files with 11 additions and 6 deletions

View File

@ -289,3 +289,4 @@ https://github.com/olikraus/u8g2 ChangeLog
* ST7567 ERC13232 (issue 1869)
* ST7920 160x32 (issue 1873)
* Added support for IST3088 (issue 1887)
* Added support for GP1287AI (issue 1907)

View File

@ -243,12 +243,21 @@ https://github.com/olikraus/u8g2/tree/master/tools/png2bin
Q: How can I generate my own font?
A: The font must be available in bdf file format. Then use bdfconv to generate
A: The font must be available in .bdf file format. Then use bdfconv to generate
the font data. The font data can be pasted into an existing file of your project.
There is also a nice Windows Bitmap Font Editor "Fony" (http://hukka.ncn.fi/?fony)
which can export .bdf files. A copy of Fony 1.4.7 is available here:
https://github.com/olikraus/u8g2/tree/master/tools/font/fony
Q: Where do I find bdfconv?
A: A Windows executable is available here:
https://github.com/olikraus/u8g2/tree/master/tools/font/bdfconv
Use the Makefile in this directory to create a Linux binary.
Q: How to convert .ttf to .bdf?
A1: With otf2bdf: http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/
A2: With FontForge: https://learn.adafruit.com/custom-fonts-for-pyportal-circuitpython-display/conversion
Q: Which commandline options are required for bdfconv?
A: "bdfconv -f 1 -m '32-255' -n fontname -o myfont.c myfont.bdf"
"-f 1" generates a u8g2 font.
@ -262,11 +271,6 @@ A: There is an online tool which helps you to derive the commandline options:
https://stncrn.github.io/u8g2-unifont-helper/
Many thanks to "stncrn" for making this available.
Q: Where do I find bdfconv?
A: A Windows executable is available here:
https://github.com/olikraus/u8g2/tree/master/tools/font/bdfconv
Use the Makefile in this directory to create a Linux binary.
Q: Are there any video-tutorials for bdfconv?
A: This is what I found on youtube: https://www.youtube.com/watch?v=Igkb7ZmO31A
The above video uses the -M option (instead of -m) to provide a map file with the unicodes.