tkinter通常提供诸如Times New Roman、Arial或Calibri等字体。但是,当我在系统上打印可用的字体系列时,我会得到以下输出:
('fangsong ti', 'fixed', 'clearlyu alternate glyphs', 'courier 10 pitch', 'open look glyph', 'bitstream charter', 'song ti', 'open look cursor', 'newspaper', 'clearlyu ligature', 'mincho', 'clearlyu devangari extra', 'clearlyu pua', 'clearlyu', 'clean', 'nil', 'clearlyu arabic', 'clearlyu devanagari', 'gothic', 'clearlyu arabic extra')
我更新了所有可能的包和库,但似乎没有更新这个可用字体列表。在
如何更新此列表以获得常用字体,或如何手动将字体添加到tkinter?在
Tkinter不保证您有权访问}。它只是让你访问你的系统上的任何字体。安装字体的方式取决于您的系统。没有办法只为tkinter安装字体。在
Times New Roman
、Arial
或{tk文档中关于字体的唯一说明是1:
1http://tcl.tk/man/tcl8.5/TkCmd/font.htm
相关问题 更多 >
编程相关推荐