Hi all,
after a while I had a look to the FONTINSPECTOR PY of URTD.
(Can see on github: urtd/fontinspector)
Now I was suprised, that there is be a 1.2 Version, which seems to support glyphs (The comments in code does this…)
But this Script doesnt work… mmh :
When I trying to generate fontinspector-file for a component-glyphs
I got these error messages:
–––Traceback (most recent call last):
–––File “FontInspector_v1_2_.py”, line 238, in
–––svgG += ‘<g transform="translate(’ + str(offset) + ‘,-’ + str(dB) + ‘)" –––class=“glyph”>’
–––File “FontInspector_v1_2_.py”, line 22, in svg
–––new.appendGlyph(g)
–––File “/Folder/RoboFab/RoboFab/Lib/robofab/objects/objectsBase.py”, line –––1521, in appendGlyph
–––aGlyph.drawPoints(pen)
–––File “/Folder/RoboFab/RoboFab/Lib/robofab/objects/objectsBase.py”, line –––1506, in drawPoints
–––c.drawPoints(pen)
–––File “/Folder/RoboFab/RoboFab/Lib/robofab/objects/objectsBase.py”, line –––2760, in drawPoints
–––pen.addComponent(self.baseGlyph, (sX, 0, 0, sY, oX, oY))
–––File “/Users/Oliver/Library/Application Support/Glyphs/Scripts/GSPen.py”
–––line 78, in addComponent
–––Component = GSComponent()
–––TypeError: Component__init_() takes at least 2 arguments (1 given)
When I trying to generate fontinspextor-file for a “regular-outline”-glyphs
I got these error messages:
–––Traceback (most recent call last):
–––File “FontInspector_v1_2_.py”, line 238, in
–––svgG += ‘<g transform="translate(’ + str(offset) + ‘,-’ + str(dB) + ‘)" –––class=“glyph”>’
–––File “FontInspector_v1_2_.py”, line 64, in svg
–––font.removeGlyph(‘fontinspector’)
–––File “/Users/Oliver/Library/Application Support/Glyphs/Scripts/objectsGS.py”
–––,line 420, in removeGlyph
–––if self._object.has_key(glyphName):
–––AttributeError: ‘NSKVONotifying_GSDocument’ object has no attribute –––‘has_key’
Now:
Is this a Script-, RoboFab-, or Glyphs-Problem? Could it be fixed?
Thx
Nevu