Skip to content

Conversation

@mike-spa
Copy link
Contributor

Resolves: #30986

Makes no sense to define this width from configutation()->borderWidth() cause that's a value for UI logical pixels (and it's just equal to 1), but this painter operates in notation units determined by mu::engraving::DPI (and scales when zooming on the score). The correct thing is to define it in millimetres (0.07mm turns out to be the corresponding value).
const double strokeWidth = 0.07 * DPMM;
painter->setBrush(BrushStyle::NoBrush);
painter->setPen(Pen(configuration()->borderColor(), configuration()->borderWidth()));
painter->setPen(Pen(configuration()->borderColor(), strokeWidth));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there are any other places where NotationConfiguration::borderWidth is used that need the same treatment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick search, it doesn't seems so (as in, borderWidth appears everywhere but not in other bits of notation painting)

@mike-spa mike-spa merged commit 4557dd9 into musescore:master Nov 13, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Space between pages (and side margin when opening score) has become smaller

2 participants