By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,603 Members | 981 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,603 IT Pros & Developers. It's quick & easy.

tkfont some fonts are not working

P: 4
i try to use all fonts in tkfont. But some fonts are not working.
I must use tt fonts in tkfont
please give a solution
Oct 28 '12 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 626
i try to use all fonts in tkfont
What does that mean as we can not tell without some code? This will print all fonts available to Tkinter
Expand|Select|Wrap|Line Numbers
  1. from Tkinter import *
  2. from tkFont import families
  3. root=Tk()
  5. print families(root)
We can not answer your question without knowing the operating system and if the fonts are listed by the above print statement. If the font you want you use is not listed then it is not in your font path and/or is not recoginzed by the desktop manager. Did you install additional fonts (perhaps incorrectly) and are those the ones that can not be found?
Oct 28 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.