Skip to content

Commit

Permalink
added fonts, fixed encoding, general cleanup, removed credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Federlin committed Apr 15, 2020
1 parent 144c8d2 commit c6233fb
Show file tree
Hide file tree
Showing 9 changed files with 3,603 additions and 679 deletions.
529 changes: 529 additions & 0 deletions Fonts/FreeMono11pt8b.h

Large diffs are not rendered by default.

582 changes: 582 additions & 0 deletions Fonts/FreeMono12pt8b.h

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions Fonts/FreeMono9pt8b.h

Large diffs are not rendered by default.

573 changes: 573 additions & 0 deletions Fonts/FreeMonoBold11pt8b.h

Large diffs are not rendered by default.

642 changes: 642 additions & 0 deletions Fonts/FreeSans11pt8b.h

Large diffs are not rendered by default.

664 changes: 664 additions & 0 deletions Fonts/FreeSansBold11pt8b.h

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Fonts/README.md
@@ -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);`

0 comments on commit c6233fb

Please sign in to comment.