Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with loading file "CustomTkinter_shapes_font.otf" in windows #2649

Open
jnd-github opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@jnd-github
Copy link

(I hope i didn't overlook a matching thread on this topic, i would also like to point out that i am not nearly a professional on this whole topic)
I am creating an application with customtkinter using pycharm in a virtual machine. The application works fine when i run it there.
After converting it into an executable file and exporting it to my host computer, i have problems with the rendering.
I could track the problem to this line:
num_fonts_added = add_font_resource_ex(byref(path_buffer), flags, 0) (customtkinter/windows/widgets/font/font_manager.py)
The .otf-file-path used on my host machine seems to be correnct as far as i could debug, but i am also not able to install the font manually on my host pc, while it is possible to do so in the virtual machine. Both machines are running on Windows 10 Pro Version 22H2 (although slightly different builds).
The problem could lie with the authorization settings, as it is a company computer, therefore i am looking for a solution in which i do not need to dynamically load the font-file into the systems list of fonts (windll.gdi32.AddFontResourceExW).
Is there any way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant