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:
![[Image: view?usp=sharing]](https://drive.google.com/file/d/168oHktXJsgEoeX2YoUxX8D1aXkOvVNm-/view?usp=sharing)
Supposed be like this:
![[Image: ed4c85679cf0100d7b1a62cea923978b.png]](https://font-1001freefonts.netdna-ssl.com/storage/preview_cache/18666/ed4c85679cf0100d7b1a62cea923978b.png)
Thanks for help!!!![Type Type](https://python-forum.io/images/extra_smilies/type.gif)
I forgot to add, I renamed Digital Play St.ttf to digital.ttf
![Huh Huh](https://python-forum.io/images/smilies/huh.png)
![Doh Doh](https://python-forum.io/images/smilies/eusa_doh.gif)
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:
![[Image: ed4c85679cf0100d7b1a62cea923978b.png]](https://font-1001freefonts.netdna-ssl.com/storage/preview_cache/18666/ed4c85679cf0100d7b1a62cea923978b.png)
Thanks for help!!!
![Type Type](https://python-forum.io/images/extra_smilies/type.gif)
I forgot to add, I renamed Digital Play St.ttf to digital.ttf