python - 您可以将自己的字体导入 PIL(Python 图像库)吗?
问题描述
我想知道是否有任何方法可以在 draw.text 中使用您自己的字体。我想使用的字体叫做 DiscoMonkey。
font = ImageFont.truetype("[discomonkey font]", 32)
解决方案
推荐阅读
- c++ - 在for循环中重新初始化值
- java - 使用 JPA 和休眠查询数据时出现 NullPointerException
- go - 进行 go RPC 调用时,返回类型为 channel
- python - 仅获取嵌套列表中每个列表中的唯一值
- docker - 指向外部 URL 以始终转到 Docker 容器的同一实例
- angular - 如何修复 net::ERR_CONNECTION_REFUSED?
- r - Graph Not Changing Colors in R
- ethereum - Chainlink Request Event Emit - 不确定是否正在发出事件,请求似乎成功
- html - 为什么 div 部分之前的文本会出现在它之后?
- python - TypeError:预期的序列或类似数组,得到