Update README.md
Browse files
README.md
CHANGED
|
@@ -6,6 +6,6 @@ An utility repo to load conveniently fonts using `hf_hub_download`:
|
|
| 6 |
from huggingface_hub import hf_hub_download
|
| 7 |
from PIL import ImageFont
|
| 8 |
|
| 9 |
-
font_path = hf_hub_download("ybelkada/fonts", "Arial.
|
| 10 |
font_obj = ImageFont(font_path, encoding="UTF-8")
|
| 11 |
```
|
|
|
|
| 6 |
from huggingface_hub import hf_hub_download
|
| 7 |
from PIL import ImageFont
|
| 8 |
|
| 9 |
+
font_path = hf_hub_download("ybelkada/fonts", "Arial.TTF")
|
| 10 |
font_obj = ImageFont(font_path, encoding="UTF-8")
|
| 11 |
```
|