kijai / ComfyUI-Florence2

Inference Microsoft Florence2 VLM
MIT License
645 stars 40 forks source link

'ImageFont' object has no attribute 'font_variant' #21

Open ffhelly opened 3 months ago

ffhelly commented 3 months ago

'ImageFont' object has no attribute 'font_variant'

when i use OCR region,it show this error.

im sure , my pillow is ready , and vesion = 9.5.

kijai commented 3 months ago

'font_variant' was added in pillow==10.2.0

However it's only used to change the default font size, so for old pillow I now added a fallback, though that font with that is then really small.

ffhelly commented 3 months ago

对于旧枕头我现在添加了一个后备,尽管那个字体真的

thx,bro. its working now.

I have another question. There are many emo characters in my pictures, and when I use them, there are many strange character displays. Will there be additional features such as character sets in the future?