Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added fonts, fixed encoding, general cleanup, removed credentials
- Loading branch information
Alexander Federlin
committed
Apr 15, 2020
1 parent
144c8d2
commit c6233fb
Showing
9 changed files
with
3,603 additions
and
679 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Fonts | ||
In order to get e.g. German "Umlauts" displayed on the display using the Adafruit GFX library, | ||
you need to supply your own 8bit Font, which actually contains these symbols. | ||
To create one, you can use the fontconvert utility delivered together with the GFX library. | ||
|
||
fontconvert is in .pio/libdeps/nodemcuv2/Adafruit GFX Library_ID13/fontconvert | ||
|
||
In order to create your own font, you can follow these steps: | ||
|
||
- Download free fonts from http://ftp.gnu.org/gnu/freefont/ and copy the fonts e.g. to ~/freefont | ||
- run`./fontconvert ~/freefont/FreeMono.ttf 11 32 252 > ../Fonts/FreeMono11pt8b.h` | ||
- the above command creats an 11pt Mono Font with symbols 32 through 252, which includes Umlauts and some other symbols (such as the degree symbol °) | ||
|
||
In your code: | ||
- `#include <Fonts/FreeMono11pt8b.h>` | ||
- `tft.setFont(&FreeMono11pt8b);` |
Oops, something went wrong.