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:
vocx-fc
2020-06-06 01:45:47 -05:00
committed by Yorik van Havre
parent 2a15bd18f6
commit a719859054

View File

@@ -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: