diff options
| author | Tim Redfern <tim@getdrop.com> | 2023-04-20 17:29:28 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2023-04-20 17:29:28 +0100 |
| commit | 369946c9964c02d9c702e824292d5dd11a0af102 (patch) | |
| tree | 8f8cd56ae269dd3d7706785c5746e33365d4424a /nextus/src/ofApp.cpp | |
| parent | 38c20e41403c3d081e41fe31a79e3a4396c72aac (diff) | |
text kinda works
Diffstat (limited to 'nextus/src/ofApp.cpp')
| -rw-r--r-- | nextus/src/ofApp.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nextus/src/ofApp.cpp b/nextus/src/ofApp.cpp index 3a44557..f3aee1d 100644 --- a/nextus/src/ofApp.cpp +++ b/nextus/src/ofApp.cpp @@ -178,7 +178,12 @@ void ofApp::dragEvent(ofDragInfo dragInfo){ string filename= *dragInfo.files.begin(); string extension= filename.substr(filename.find_last_of(".") + 1); if (extension == "svg") { - svginput.load(filename); + if (filename.find_last_of("fonts")){ + textinput.loadFont(filename); + } + else { + svginput.load(filename); + } } else if (extension == "txt"){ textinput.loadText(filename); } else if (extension == "plt"){ |
