diff options
| author | Adrien Tétar | 2015-04-26 07:17:08 +0200 |
|---|---|---|
| committer | Adrien Tétar | 2015-04-26 07:17:08 +0200 |
| commit | ffa541ce34fae21bf1b7a00d3b0ef9d30f702901 (patch) | |
| tree | eff3f2a13bf7dc5849df17e541738e3adbf9c249 /Lib/defconQt/test.py | |
| download | trufont-ffa541ce34fae21bf1b7a00d3b0ef9d30f702901.tar.bz2 | |
Basically works
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 |
