You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incomplete Text Render when Chinese and English characters are used together in an upright vertical way #20419
Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show the left half.
Code for reproduction
importmatplotlib.pyplotaspltplt.rcParams['font.sans-serif'] = ['SimHei']
plt.text(0, 0, '\n'.join("现代美学")) #all chinese is fineplt.text(0.2, 0, '\n'.join("hello world 123")) # all english/number is fineplt.text(0.4, 0, '\n'.join("现代hello美学")) #a mixture results in incomplete render of the chinese characters after the English charsplt.show()
Activity
QuLogic commentedon Jun 12, 2021
Is this specific to SimHei? Can you reproduce this with a Free CJK font, such as Noto CJK?
anntzer commentedon Jun 12, 2021
Thanks for the report. This has been fixed in #14705, though (I can repro with old versions).