> On 13 Dec 2022, at 01:47, Jérémie Bergeron <jeremiebergeron...@outlook.com> 
> wrote:
> 
> Hi,
> 
> I think it would be usefull if the class tkinter.font.Font 
> <https://docs.python.org/3/library/tkinter.font.html#module-tkinter.font> 
> would contain the path to the font.
> 
> With it, we can use many software like fonttools 
> <https://github.com/fonttools/fonttools> to obtain more information about the 
> font, because the class Font is very limited.
> 
> You could think it would be useless, but it is a nice feature when you know a 
> font name and need more information, but you doesnt know it's location on the 
> drive.

That’s not really possible because tkinter.font.Font is a wrapper for the 
Tcl/Tk font command, and that doesn’t have an interface for querying the font 
path. See https://tcl.tk/man/tcl/TkCmd/font.htm for the Tcl/Tk documentation.

Ronald

—

Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/S5IKAPA4V25XS2B6CINANW5MNPPKU33N/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to