Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Chinese font can`t change the weight #15529

Closed
@Slime0

Description

@Slime0

Bug report

Bug summary
I found that when I use Chinese font, I can`t set the weight. When I change the value of weight, It does not work.

Code for reproduction

When I try this

weights= ['light','normal','medium','semibold','bold','heavy','black']axis('off')foriinenumerate(weights):num,weight=itext(0.5,0.2*num,u'ABC',fontdict={'family':'KaiTi','weight':weight,'size':30    })text(0,0.2*num,u'哈哈哈',fontdict={'family':'KaiTi','weight':weight,'size':30    })show()

The results show it dose not work.

image

And when I comment out this line of code

weights= ['light','normal','medium','semibold','bold','heavy','black']axis('off')foriinenumerate(weights):num,weight=itext(0.5,0.2*num,u'ABC',fontdict={# 'family':'KaiTi','weight':weight,'size':30    })text(0,0.2*num,u'哈哈哈',fontdict={# 'family':'KaiTi','weight':weight,'size':30    })show()

.........:(
image

I guess maybe it doesn't support Chinese bold. :(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp