diff --git a/sources/editor/parttext.cpp b/sources/editor/parttext.cpp index 562a2f887..44ed66e29 100644 --- a/sources/editor/parttext.cpp +++ b/sources/editor/parttext.cpp @@ -32,6 +32,7 @@ PartText::PartText(QETElementEditor *editor, QGraphicsItem *parent, ElementScene CustomElementPart(editor) { setDefaultTextColor(Qt::black); + setFont(QETApp::diagramTextsFont()); setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable); setPlainText(QObject::tr("T", "default text when adding a text in the element editor")); infos = new TextEditor(elementEditor(), this); diff --git a/sources/editor/parttextfield.cpp b/sources/editor/parttextfield.cpp index 69f6d2bda..7c252d66b 100644 --- a/sources/editor/parttextfield.cpp +++ b/sources/editor/parttextfield.cpp @@ -32,6 +32,7 @@ PartTextField::PartTextField(QETElementEditor *editor, QGraphicsItem *parent, QG follow_parent_rotations(true) { setDefaultTextColor(Qt::black); + setFont(QETApp::diagramTextsFont()); setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable); setPlainText(QObject::tr("_", "default text when adding a textfield in the element editor")); infos = new TextFieldEditor(elementEditor(), this);