Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 0067077

Browse files
authored
add example for using a better font
1 parent a5f8ad8 commit 0067077

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ printer = P700(PyUSBBackend.auto())
2727
printer.print_label(l)
2828
```
2929

30+
Example of using a better font:
31+
32+
```python
33+
from PIL import Image, ImageFont
34+
SIZE = 60
35+
font = ImageFont.truetype("FreeSans.ttf", SIZE)
36+
# Use it in the label template, e.g.
37+
Text(font, pad_right=50)
38+
```
39+
3040
The Following printers are currently supported:
3141

3242
* Brother P-Touch PT-700 (aka P700)

0 commit comments

Comments
 (0)