Chicago95 icon indicating copy to clipboard operation
Chicago95 copied to clipboard

Plus! GUI returns KeyError: 'glyphs' when attempting to load a theme

Open BlackberrieCake137 opened this issue 1 year ago • 4 comments

Hi! Themes aren't working for some reason.

I get the error


[MakePreview] Fonts... [MakePreview] Generating Preview Image
[MakePreview] Metrics... OK
Traceback (most recent call last):
  File "/home/admin/Scrivania/.Chicago95/Plus/./PlusGUI.py", line 872, in open_file
    self.preview_image = MakePreview(self.theme)
                         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/Scrivania/.Chicago95/Plus/./PlusGUI.py", line 110, in __init__
    self.set_fonts()
  File "/home/admin/Scrivania/.Chicago95/Plus/./PlusGUI.py", line 171, in set_fonts
    self.lfMessageFont = self.get_font(self.msgfont)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/Scrivania/.Chicago95/Plus/./PlusGUI.py", line 384, in get_font
    return self.get_font("Noto-Sans-Regular")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/Scrivania/.Chicago95/Plus/./PlusGUI.py", line 365, in get_font
    return installed_fonts[fontname]['glyphs']
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'glyphs'```

BlackberrieCake137 avatar Dec 06 '24 06:12 BlackberrieCake137

I am also having this problem on arch linux.

edit: the cli version of this tool seems to be working much better for some reason.

PacoPacorius avatar Dec 12 '24 14:12 PacoPacorius

I am also having this problem on arch linux.

edit: the cli version of this tool seems to be working much better for some reason.

ill try the CLI version shortly

BlackberrieCake137 avatar Dec 13 '24 16:12 BlackberrieCake137

Could you send me the specific theme you had an issue with?

grassmunk avatar Mar 06 '25 20:03 grassmunk

Could you send me the specific theme you had an issue with?

I have the same exact error on fedora. Tried multiple themes and they give the same error, both with the gui and with the cli.

this is the most recent one I tried: https://archive.org/details/enlite_202005/enlite.1.png

ezvision avatar Sep 28 '25 16:09 ezvision