Wow, awesome. That’s exactly what I was looking for. Thanks for the pointers!
Posts made by benedikt
Unicode Category of Glyph
I am looking for the best/easiest way to get the unicode and the unicode category of a glyph. The unicode itself is part of the RGlyph object, but not the unicode category, right?
Thanks in advance for your help!
RE: Traceback when sorting AllFonts()
I got it to work now with
Thanks for the quick reply.
Sidenote: Isn’t it a bit confusing that the implementation of
Traceback when sorting AllFonts()
I was trying to sort the fonts in my AllFonts list.
For this I turned to this page in the documentation. But when I try something like:
fonts = AllFonts() fonts.sortBy('styleName')
I get the following traceback.
Traceback (most recent call last): File "lib/fontObjects/fontPartsWrappers.pyc", line 1955, in sortBy File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufo2fdk/fontInfoData.py", line 550, in getAttrWithFallback KeyError: 's' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "WhatIsGoingOn.py", line 2, in <module> File "lib/fontObjects/fontPartsWrappers.pyc", line 1957, in sortBy File "lib/fontObjects/fontPartsWrappers.pyc", line 1132, in __getattribute__ File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/fontParts/base/info.py", line 82, in __getattribute__ AttributeError: 'RInfo' object has no attribute 's'
Is this not really implemented yet?
Or should this be used differently?
Thanks in advance!