File size: 271 Bytes
04e9fc0 7f29c37 04e9fc0 |
1 2 3 4 5 6 7 8 9 10 11 |
# Fonts
An utility repo to load conveniently fonts using `hf_hub_download`:
```python
from huggingface_hub import hf_hub_download
from PIL import ImageFont
font_path = hf_hub_download("ybelkada/fonts", "Arial.TTF")
font_obj = ImageFont(font_path, encoding="UTF-8")
``` |