Draft: adjust the text size for Labels with format_object
This function, `draftutils.gui_utils.format_object`, takes the value defined in the `DrafToolBar`, and uses it to specify the `FontSize` for `Text` objects. Now it specifies the `TextSize` for `Label` elements as well.
This commit is contained in:
@@ -357,6 +357,8 @@ def format_object(target, origin=None):
|
||||
if not origin or not hasattr(origin, 'ViewObject'):
|
||||
if "FontSize" in obrep.PropertiesList:
|
||||
obrep.FontSize = fs
|
||||
if "TextSize" in obrep.PropertiesList:
|
||||
obrep.TextSize = fs
|
||||
if "TextColor" in obrep.PropertiesList:
|
||||
obrep.TextColor = col
|
||||
if "LineWidth" in obrep.PropertiesList:
|
||||
|
||||
Reference in New Issue
Block a user