Simple request

• Jul 14, 2012 - 06:47

Hi everyone,
Just wondering if there is a way to control the font and size of note names. I know by default the MS Shell Dlg 2, size 7.80 is used. How can I modify that font and size? By the way MuseScore is getting better and better. Very grateful.


Comments

In reply to by ChurchOrganist

Dear ChurchOrganist,
I appreciate your prompt response. I got it! I spent some time on the way to solve this problem and the answer just emerged. What I meant is that when you write a given score and you want to add note names for teaching purposes through the plugin, how to modify font and size?

Can you please let us know what your solution was for changing the font size for note names? I am hoping your solution changes the default font size. I know how to change each note's size individually but that is too tedious for changing all note names sizes.

I'm new with this program and am not sure where to change stafftext. If I go into Edit Text Styles and check Staff, its default is Times New Roman with size 10. The text that Note Names generates uses MS Shell Dlg 2 with size 8 though so Edit Text Styles does not appear to be the place to change it. Where else might I find this?

Thanks in advance for your help.

In reply to by bassic

Hmm, apparently I was wrong in assuming that Edit Text Style would do the trick.

Apparently at least the defaultFont can get changed inside the plugin code, http://musescore.org/en/plugin-development/text-object, however I don't really understand how this is done.

Edit: Ah, now I know:
{syntaxhighlighter brush:js}
var text = new Text(curScore);
text.defaultFont = new QFont("Times New Roman", 10);
{/syntaxhighlighter}

You can right click on the first note name--the text property window opens. You can then change the color, font, and size.
Please make sure you check the little box at the bottom of that window to make the change on all names. Voila.

Do you still have an unanswered question? Please log in first to post your question.