Multiply textheight by DefaultAnnoScaleMultiplier
This commit is contained in:
@@ -226,11 +226,11 @@ class _ViewProviderAxis:
|
||||
|
||||
def setProperties(self,vobj):
|
||||
|
||||
ts = params.get_param("textheight")
|
||||
ts = params.get_param("textheight") * params.get_param("DefaultAnnoScaleMultiplier")
|
||||
pl = vobj.PropertiesList
|
||||
if not "BubbleSize" in pl:
|
||||
vobj.addProperty("App::PropertyLength","BubbleSize","Axis", QT_TRANSLATE_NOOP("App::Property","The size of the axis bubbles"))
|
||||
vobj.BubbleSize = ts*1.42
|
||||
vobj.BubbleSize = ts * 1.42
|
||||
if not "NumberingStyle" in pl:
|
||||
vobj.addProperty("App::PropertyEnumeration","NumberingStyle","Axis", QT_TRANSLATE_NOOP("App::Property","The numbering style"))
|
||||
vobj.NumberingStyle = ["1,2,3","01,02,03","001,002,003","A,B,C","a,b,c","I,II,III","L0,L1,L2"]
|
||||
|
||||
@@ -572,7 +572,7 @@ class ViewProviderBuildingPart:
|
||||
vobj.FontName = params.get_param("textfont")
|
||||
if not "FontSize" in pl:
|
||||
vobj.addProperty("App::PropertyLength","FontSize","BuildingPart",QT_TRANSLATE_NOOP("App::Property","The font size of texts"))
|
||||
vobj.FontSize = params.get_param("textheight")
|
||||
vobj.FontSize = params.get_param("textheight") * params.get_param("DefaultAnnoScaleMultiplier")
|
||||
if not "DiffuseColor" in pl:
|
||||
vobj.addProperty("App::PropertyColorList","DiffuseColor","BuildingPart",QT_TRANSLATE_NOOP("App::Property","The individual face colors"))
|
||||
|
||||
|
||||
@@ -971,7 +971,7 @@ class _ViewProviderSectionPlane:
|
||||
vobj.FontName = params.get_param("textfont")
|
||||
if not "FontSize" in pl:
|
||||
vobj.addProperty("App::PropertyLength","FontSize","SectionPlane",QT_TRANSLATE_NOOP("App::Property","The size of the text font"))
|
||||
vobj.FontSize = params.get_param("textheight")
|
||||
vobj.FontSize = params.get_param("textheight") * params.get_param("DefaultAnnoScaleMultiplier")
|
||||
|
||||
|
||||
def onDocumentRestored(self,vobj):
|
||||
|
||||
@@ -519,10 +519,10 @@ class _ViewProviderSpace(ArchComponent.ViewProviderComponent):
|
||||
vobj.TextColor = (0.0,0.0,0.0,1.0)
|
||||
if not "FontSize" in pl:
|
||||
vobj.addProperty("App::PropertyLength", "FontSize", "Space",QT_TRANSLATE_NOOP("App::Property","The size of the text font"))
|
||||
vobj.FontSize = params.get_param("textheight")
|
||||
vobj.FontSize = params.get_param("textheight") * params.get_param("DefaultAnnoScaleMultiplier")
|
||||
if not "FirstLine" in pl:
|
||||
vobj.addProperty("App::PropertyLength", "FirstLine", "Space",QT_TRANSLATE_NOOP("App::Property","The size of the first line of text"))
|
||||
vobj.FirstLine = params.get_param("textheight")
|
||||
vobj.FirstLine = params.get_param("textheight") * params.get_param("DefaultAnnoScaleMultiplier")
|
||||
if not "LineSpacing" in pl:
|
||||
vobj.addProperty("App::PropertyFloat", "LineSpacing", "Space",QT_TRANSLATE_NOOP("App::Property","The space between the lines of text"))
|
||||
vobj.LineSpacing = 1.0
|
||||
|
||||
Reference in New Issue
Block a user