Skip to content

draw.text((50,5),str(d['类型']), font=font25bd, fill='#eaca67') #5346

@kerwinxu

Description

@kerwinxu

What did you do?

draw.text((50,5),str(d['类型']), font=font25bd, fill='#eaca67')

What did you expect to happen?

What actually happened?

  File "批量添加文字.py", line 108, in draw_content
    draw.text((50,5),str(d['类型']), font=font25bd, fill='#eaca67')
  File "d:\anaconda3\lib\site-packages\PIL\ImageDraw.py", line 379, in text
    draw_text(ink)
  File "d:\anaconda3\lib\site-packages\PIL\ImageDraw.py", line 324, in draw_text
    mask, offset = font.getmask2(
  File "d:\anaconda3\lib\site-packages\PIL\ImageFont.py", line 667, in getmask2
    size, offset = self.font.getsize(
OSError: invalid face handle

What are your OS, Python and Pillow versions?

  • OS: win10
  • Python: anaconda 3.8
  • Pillow: 8.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnacondaIssues with Anaconda's Pillow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions