I tried building a wordcloud on my jupyter notebook with the code
from wordcloud import WordCloud
import matplotlib.pyplot as plt
sent = "This is my First Word Cloud, it is the First of its kind, and your First Word Cloud is always the most amazing"
wc = WordCloud(font_path =r'C:\Users\DELL\AppData\Local\Microsoft\Windows\Fonts\FiraSans-Thin.ttf').generate(sent)
plt.imshow(wc, interpolation='bilinear')
plt.show()
it keeps returning an error"
ValueError: Only supported for TrueType fonts
I tried downloading and installing new fonts from googlefonts, i also tried using pycharm but the errror was still the same
Extract the font to your project folder (e.g. ./font/Fira_Sans) and load it from there.