2023-05-03 00:05:40 +03:00
|
|
|
|
# ⛔ У меня не получилось собрать шрифт bdfconv, который бы работал на Flipper
|
|
|
|
|
|
|
|
|
|
# 🔤 Build font
|
2023-05-02 22:13:01 +03:00
|
|
|
|
|
|
|
|
|
⚠️ This guide aclualy for Linux.
|
|
|
|
|
|
2023-05-03 00:05:40 +03:00
|
|
|
|
## 1. Generate BDF
|
2023-05-02 22:13:01 +03:00
|
|
|
|
1. Open \*.ttf in FontForge.
|
|
|
|
|
2. With **Shift** select needed glyps.
|
|
|
|
|
3. Select **Bitmap Scrike Available** in **Element** menu.
|
|
|
|
|
4. Write `16` in **Pixel sizes** text area.
|
|
|
|
|
5. Select **Generate Fonts** in **File** menu.
|
|
|
|
|
6. Select **No Outline Font** & **BDF**.
|
|
|
|
|
7. Click **Generate**.
|
|
|
|
|
|
|
|
|
|
## 2. Make `bdfconv`
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cd ./bdfconv
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 3. Generate `u8g2` font
|
|
|
|
|
|
|
|
|
|
```sh
|
2023-05-03 00:05:40 +03:00
|
|
|
|
./bdfconv -f 1 -m '32-255' -n u8g2_cyr_font -o cyr_font.c ../monogramextended-*.bdf
|
2023-05-02 22:13:01 +03:00
|
|
|
|
```
|
2023-05-03 00:05:40 +03:00
|
|
|
|
|
|
|
|
|
# Learn
|
|
|
|
|
|
|
|
|
|
https://github.com/olikraus/u8g2/blob/master/doc/faq.txt
|