Skip to content

Empty lines inside text in frames do not resize properly when changing font size #19571

@p-mitana

Description

@p-mitana

Issue type

UI bug

Bug description

When text in frame that contains empty lines and user changes the font size for it, the change is not applied to empty lines. Instead, only the lines that contain text are resized. Sometimes empty lines will update when I click outside of the frame (i think that when there is only one empty line in a row), but it behaves a bit weirdly.

Steps to reproduce

  1. Add a frame
  2. Add text to this frame with two lines of text separated by an empty line or two, for example:

Some text
(empty line)
(empty line)
Some more text

  1. Select all the text in the frame
  2. Change size to some big value for contrast
  3. Try changing size back and forth and notice how it behaves

You can also create an additional text for verse numbering:

  1. Write verses:

This
is
first
verse
(empty line)
This
is
second
verse

  1. Move the text a bit to the right
  2. Add another text to the frame
  3. Write the numbers:

(empty line)
(empty line)
(empty line)
(empty line)
2.

  1. Numbers should be aligned to verses at this point. Now try to change the font size for both frames to the same value and see what happens.

Screenshots/Screen recordings

No response

MuseScore Version

OS: Fedora Linux 38 (Workstation Edition), Arch.: x86_64, MuseScore version (64-bit): 4.1.1-232071203, revision: github-musescore-musescore-e4d1ddf

Regression

No.

Operating system

Fedora Linux 38

Additional context

Official AppImage distribution

Metadata

Metadata

Assignees

Labels

P3Priority: LowcommunityIssues particularly suitable for community contributors to work ontextAny issues to do with text or fonts

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions