From a7198590540dbee2e8e4aa35f7068f1dce18cab2 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Sat, 6 Jun 2020 01:45:47 -0500 Subject: [PATCH] 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. --- src/Mod/Draft/draftutils/gui_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Draft/draftutils/gui_utils.py b/src/Mod/Draft/draftutils/gui_utils.py index 858260f540..ba4f73f089 100644 --- a/src/Mod/Draft/draftutils/gui_utils.py +++ b/src/Mod/Draft/draftutils/gui_utils.py @@ -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: