kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Merge pull request #337 from pimoroni/update-docs
Update Badger readme to include bitmap fontspull/340/head
commit
0c8b742857
|
@ -196,7 +196,7 @@ measure_text(
|
||||||
|
|
||||||
### Change Font
|
### Change Font
|
||||||
|
|
||||||
There are five fonts to pick from:
|
There are five vector fonts to pick from:
|
||||||
|
|
||||||
* "sans"
|
* "sans"
|
||||||
* "gothic"
|
* "gothic"
|
||||||
|
@ -204,6 +204,14 @@ There are five fonts to pick from:
|
||||||
* "serif"
|
* "serif"
|
||||||
* "serif_italic"
|
* "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
|
```python
|
||||||
font(
|
font(
|
||||||
font # string: one of the fonts listed above
|
font # string: one of the fonts listed above
|
||||||
|
|
Ładowanie…
Reference in New Issue