Skip to content

How to compute minStaveWidth for elements that i want to draw in stave? #1464

Answered by FRutkowski
FRutkowski asked this question in Q&A
Discussion options

You must be logged in to vote

Okay if some one need to know how to do this, the way that worked for me was a create new instance of Formatter(), and use function preCalculateMinTotalWidth(voices) which returned minTotalWidth without using format function, if you want to use for every stave same instance of Formatter you'll probably need to change hasMinTotalWidth to false but i didnt test this.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FRutkowski
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants