This commit is contained in:
Alexander Popov 2023-05-02 22:13:01 +03:00
parent a2e6ddbac9
commit a16f7a6481
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
7 changed files with 39 additions and 5 deletions

View File

@ -18,3 +18,9 @@ trim_trailing_whitespace = false
[Makefile]
indent_style = tab
indent_size = 4
[font/bdfconv/**]
indent_style = unset
indent_size = unset
trim_trailing_whitespace = unset
insert_final_newline = unset

1
font/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.bdf

25
font/README.md Normal file
View File

@ -0,0 +1,25 @@
## 🔤 Build font
⚠️ This guide aclualy for Linux.
## 1.
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
./bdfconv -f 1 -n u8g2_cyr_font -o cyr_font.c ../monogramextended-*.bdf
```

View File

@ -1,5 +0,0 @@
root = true
[{*.c,*.h}]
indent_style = unset
indent_size = unset

4
font/bdfconv/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.o
*.s
bdfconv
cyr_font.c

3
font/bdfconv/generate.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
./bdfconv -f 1 -m '32-255' -n u8g2_cyr_font -o cyr_font.c ../monogramextended-*.bdf

BIN
font/monogram.ttf Normal file

Binary file not shown.