Python3を使っていたら、「 Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.」ワーニングが出ました。
スクリプトの動作には問題はないようですが、気になるので調べましたら、下記のサイトに紹介がありました。
https://bugzilla.redhat.com/show_bug.cgi?id=894058
RedHat Enterprise Linuxですが、Ubuntuでも同じようで、下記のようにするのだそうです。