Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
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.
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()
I guess maybe it doesn't support Chinese bold. :(