flipper_cyrillic_example/font/README.md

32 lines
727 B
Markdown
Raw Permalink Normal View History

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