https://github.com/junka/fonthdr
https://github.com/junka/fonthdr
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/junka/fonthdr
- Owner: junka
- Created: 2019-05-18T01:42:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-02T08:58:18.000Z (about 2 years ago)
- Last Synced: 2025-02-01T14:19:20.424Z (over 1 year ago)
- Language: C
- Size: 7.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fonthdr
Extract an freetype font array from font file with fixed size, this can be useful when device has very limited storage space and fixed font size.
Include all output in one header file.
## build
```
git clone https://github.com/junka/fonthdr.git
cd fonthdr
mkdir build
cmake ..
make
```
It will automatically build the example ```ftbmp ``` with alphabet from a to z.
run example ftbmp will give you the bmp image that contains a-z.
Also it shows how to use the generated header file ```ftsrc.h```.
## usage
```
fonthdr -f -s
```
This will generate ```ftsrc.h``` with a given charactors. Any utf8 string could be decoded right.