Merge pull request #337 from pimoroni/update-docs

Update Badger readme to include bitmap fonts
pull/340/head
Philip Howard 2022-04-11 10:17:06 +01:00 zatwierdzone przez GitHub
commit 0c8b742857
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -196,7 +196,7 @@ measure_text(
### Change Font
There are five fonts to pick from:
There are five vector fonts to pick from:
* "sans"
* "gothic"
@ -204,6 +204,14 @@ There are five fonts to pick from:
* "serif"
* "serif_italic"
There are also three bitmap fonts, useful for smaller text and retro goodness. They should handle characters like £, ° and accented characters more gracefully.
* "bitmap6"
* "bitmap8"
* "bitmap14_outline"
When working with bitmap fonts, note that `scale` must be an integer >= 1, and text is orientated from its top left corner.
```python
font(
font # string: one of the fonts listed above