Include osifont in TechDraw

- also use PropertyFont instead of PropertyString
This commit is contained in:
WandererFan
2017-08-24 20:12:41 -04:00
committed by wmayer
parent caace9d617
commit 15be0f285e
7 changed files with 32 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public:
virtual ~DrawViewAnnotation();
App::PropertyStringList Text;
App::PropertyString Font;
App::PropertyFont Font;
App::PropertyColor TextColor;
App::PropertyInteger TextSize;
App::PropertyInteger LineSpace;

View File

@@ -186,6 +186,7 @@ App::DocumentObjectExecReturn *DrawViewDimension::execute(void)
}
//TODO: if MeasureType = Projected and the Projected shape changes, the Dimension may become invalid (see tilted Cube example)
requestPaint();
return App::DocumentObject::execute();;
}

View File

@@ -59,7 +59,7 @@ public:
App::PropertyEnumeration Type; //DistanceX,DistanceY,Diameter, etc
/// Properties for Visualisation
App::PropertyString Font;
App::PropertyFont Font;
App::PropertyFloat Fontsize;
App::PropertyString FormatSpec;
App::PropertyFloat LineWidth;

View File

@@ -49,7 +49,7 @@ public:
App::PropertyLink Source;
App::PropertyString CellStart;
App::PropertyString CellEnd;
App::PropertyString Font;
App::PropertyFont Font;
App::PropertyColor TextColor;
App::PropertyFloat LineWidth;
App::PropertyFloat TextSize;