From e05beb3857af9b483af39eac338839f83ed25677 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 16 Sep 2022 16:45:18 -0500 Subject: [PATCH] ensure the text fits properly and better control over text size --- src/qml/presenter/Slide.qml | 3 ++- src/qml/presenter/SongEditor.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/presenter/Slide.qml b/src/qml/presenter/Slide.qml index edfbb1e..15be7cf 100644 --- a/src/qml/presenter/Slide.qml +++ b/src/qml/presenter/Slide.qml @@ -132,13 +132,14 @@ Item { id: lyrics text: root.text /* text: root.width / textSize */ - font.pixelSize: root.width / root.textSize * 3 + font.pixelSize: root.width / 1000 * root.textSize /* minimumPointSize: 5 */ fontSizeMode: Text.Fit font.family: chosenFont horizontalAlignment: hTextAlignment verticalAlignment: vTextAlignment style: Text.Raised + wrapMode: Text.WordWrap anchors.fill: parent anchors.topMargin: 10 anchors.bottomMargin: 10 diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index bdfb880..cc0f4b9 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -40,7 +40,7 @@ Item { id: fontSizeBox editable: true from: 5 - to: 72 + to: 150 hoverEnabled: true onValueModified: updateFontSize(value) }