【发布时间】:2020-03-16 09:35:02
【问题描述】:
我想在我的标签中将自定义字体设置为 css 中的 @front-family ?
font = "C:/Users/Alex/Documents/myproject/Call of Ops Duty.otf"
mylabel = Label(main, text="This is a text", bg="black", fg="#fff", font=(font, 30))
和
mylabel = Label(main, text="This is a text", bg="black", fg="#fff", font=(Call of Ops Duty.otf, 30))
和
mylabel = Label(main, text="This is a text", bg="black", fg="#fff", font=("Call of Ops Duty", 30))
它不起作用;(
【问题讨论】:
-
你的电脑里安装了这个字体吗?
标签: python-3.x tkinter font-family