Sep-15-2020, 12:30 PM
(This post was last modified: Sep-15-2020, 12:37 PM by ATARI_LIVE.)
Confused the Coding with the font...
I use to download the font at:
https://www.1001freefonts.com/digital-play-st.font
Here code what I am trying:
I got the result is NOT what I wanted with the font:
Supposed be like this:
Thanks for help!!!
I forgot to add, I renamed Digital Play St.ttf to digital.ttf
I use to download the font at:
https://www.1001freefonts.com/digital-play-st.font
Here code what I am trying:
from tkinter import * import pyglet win = Tk() win.geometry("500x200") win.title("FONT TEST") pyglet.font.add_file('/home/pi/.fonts/digital.ttf') set_font=pyglet.font.load('Digital Play St') print(set_font) lab2=Label(win, text="0 1 2 3 4 5 6 7 8 9", font=('set_font',19)) lab2.place(x=10,y=10) win.mainloop()
I got the result is NOT what I wanted with the font:
Supposed be like this:
Thanks for help!!!
I forgot to add, I renamed Digital Play St.ttf to digital.ttf