add font
This commit is contained in:
parent
a2e6ddbac9
commit
a16f7a6481
@ -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
1
font/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.bdf
|
25
font/README.md
Normal file
25
font/README.md
Normal 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
|
||||
```
|
@ -1,5 +0,0 @@
|
||||
root = true
|
||||
|
||||
[{*.c,*.h}]
|
||||
indent_style = unset
|
||||
indent_size = unset
|
4
font/bdfconv/.gitignore
vendored
Normal file
4
font/bdfconv/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*.o
|
||||
*.s
|
||||
bdfconv
|
||||
cyr_font.c
|
3
font/bdfconv/generate.sh
Executable file
3
font/bdfconv/generate.sh
Executable 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
BIN
font/monogram.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user