Use PropertyFile for fonts

This commit is contained in:
wmayer 2013-06-11 22:31:15 +02:00
parent ef104af13d
commit 7e792ef761
2 changed files with 1 additions and 2 deletions

View File

@ -3727,7 +3727,7 @@ class _ShapeString(_DraftObject):
def __init__(self, obj):
_DraftObject.__init__(self,obj,"ShapeString")
obj.addProperty("App::PropertyString","String","Base","Text string")
obj.addProperty("App::PropertyString","FontFile","Base","Font file name")
obj.addProperty("App::PropertyFile","FontFile","Base","Font file name")
obj.addProperty("App::PropertyFloat","Size","Base","Height of text")
obj.addProperty("App::PropertyInteger","Tracking","Base",
"Inter-character spacing")

View File

@ -329,7 +329,6 @@ static PyObject * makeWireString(PyObject *self, PyObject *args)
float height;
int track = 0;
const char* text;
Py_UNICODE *unichars;
Py_ssize_t pysize;