CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Please change user fonts directory on linux

Open antrrax opened this issue 2 years ago • 11 comments

On linux the user fonts should be in this directory: ~/.local/share/fonts/

instead of ~/fonts/

https://help.gnome.org/admin/system-admin-guide/stable/fonts-user.html.en


file: font_manager.py https://github.com/TomSchimansky/CustomTkinter/blob/ec8cecb5757850d2e1d03062bdca68fd95338677/customtkinter/font_manager.py

antrrax avatar Aug 01 '22 00:08 antrrax

I can work on this issue for you.

lmwenda avatar Aug 06 '22 08:08 lmwenda

I appreciate if you can do this

antrrax avatar Aug 06 '22 11:08 antrrax

No problem, I'll start working on it soon.

lmwenda avatar Aug 06 '22 11:08 lmwenda

Do you know if this also applies to other desktop environments or just GNOME? Or is this independent of the desktop environment?

TomSchimansky avatar Aug 06 '22 12:08 TomSchimansky

So it seems to be working on kali Linux but this is only one test, and that's not enough for me.

TomSchimansky avatar Aug 06 '22 12:08 TomSchimansky

What type of linux do you have? @antrrax

lmwenda avatar Aug 06 '22 12:08 lmwenda

@lmwenda Linux Mint 20.3 Cinnamon

antrrax avatar Aug 06 '22 12:08 antrrax

@TomSchimansky , @lmwenda see this: https://wiki.archlinux.org/title/Fonts

Manual installation

The recommended way of adding fonts that are not in the repositories of your system is described in #Creating a package. This gives pacman the ability to remove or update them at a later time.

Alternatively, fonts can be installed manually:

For a single user, install fonts to ~/.local/share/fonts/.
    In many cases this suffices, unless you run graphical applications as other users.
    In the past ~/.fonts/ was used, but is now deprecated.

In the past ~/.fonts/ was used, but is now deprecated.

antrrax avatar Aug 06 '22 12:08 antrrax

Yeah I've just done some research and this is true. I'm currently making some changes and should make a pull request for @TomSchimansky to review soon.

lmwenda avatar Aug 06 '22 13:08 lmwenda

A complement to the previous answer. see the file /etc/fonts/fonts.conf

pdf version, git not permit .conf: fonts.conf.pdf

the following element will be removed in the future:

~/.fonts

antrrax avatar Aug 06 '22 13:08 antrrax

The first pull request was a mistake so I closed it however I solved it with #353 pull request. I'm still waiting for @TomSchimansky to review

lmwenda avatar Aug 06 '22 13:08 lmwenda

Changed the fonts directory on Linux now with version 4.5.11.

TomSchimansky avatar Sep 15 '22 16:09 TomSchimansky