diff options
Diffstat (limited to 'Lib/defconQt/test.py')
| -rw-r--r-- | Lib/defconQt/test.py | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/Lib/defconQt/test.py b/Lib/defconQt/test.py new file mode 100644 index 0000000..47a119d --- /dev/null +++ b/Lib/defconQt/test.py @@ -0,0 +1,19 @@ +from controls.glyphCellView_ex import Window +import representationFactories +from PyQt5.QtWidgets import QApplication + +if __name__ == '__main__': +    import sys +    from defcon import Font +    path = "C:\\Veloce.ufo" +    font = Font(path) +    #glyph = font[b"a"] +    app = QApplication(sys.argv) +    window = Window() +    #window.setGlyphs_(glyph) +    representationFactories.registerAllFactories() +    #window.setGlyph(font, "a") +    window.glyphsGrid[0].drawGlyphCell("a", font) +    #window.glyphsGrid.setShape(glyph.getRepresentation("defconQt.QPainterPath")) +    window.show() +    sys.exit(app.exec_())
\ No newline at end of file | 
