lawlite19 / MachineLearning_Python

机器学习算法python实现
MIT License
7.15k stars 2.43k forks source link

Font issue for MacOS #8

Closed Qifan94 closed 6 years ago

Qifan94 commented 6 years ago

If I want to use OS to run the codes, the font address is not correct anymore.

font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14) # 解决windows环境下画图汉字乱码问题

What should I do with this?

Qifan94 commented 6 years ago

Solved it.

font = FontProperties(fname=r"System/Library/Fonts/PingFang.ttc", size=14) # 解决windows环境下画图汉字乱码问题