How do I change the font size in the V4 plugin?
The fontSizeTag used in V3 as shown below (png) does not work in V4.
The fontFaceTag works fine.
Plugins are Shakuhachi, Shinobue, Shamisen, Koto and Jianpu.
Attachment | Size |
---|---|
fontSizeTag.png | 29.77 KB |
Comments
Should work though, here's how it looks in a Mu4 mscx:
You're using
that seems to no longer work?
A full example though (setting font size and font face) looks like this:
In reply to A full example though … by Jojo-Schmitz
Thank you, I am very interested in this.
I fixed it, but still only the font size does not work.
I am using this method.
var text = newElement(Element.STAFF_TEXT);
text.placement = Placement.BELOW
text.autoplace = false;
text.text = sep + text.text;
text.text=noteNameF[(notes[i].pitch % 12)] +text.text ;
text.offsetX= xPos;
text.offsetY = yPos;
text.color= fontColor;
var fontSizeTag="<font size=\""+fontSize+"\"></font>"; // does't work
var fontFaceTag="<font face=\""+fontNameSel+"\"/>"; // work
text.text= fontSizeTag + fontFaceTag + text.text;
cursor.add(text);
In reply to Thank you, I am very… by tcbnhrs
try
In reply to try var fontSizeTag="<font… by Jojo-Schmitz
Thank you.
It didn't work. The fontSize numbers are also displayed.
In reply to Thank you. It didn't work… by tcbnhrs
Hmm, changing a sore manually to have this works:
It is basically what you've been using in the initial post
In reply to Thank you. It didn't work… by tcbnhrs
But this works too:
In reply to But this works too: … by Jojo-Schmitz
I used Musescore 4.1.1 and still cannot change the font size.I don't know where the problem lies.
https://musescore.org/en/node/352999
In reply to Thank you. It didn't work… by tcbnhrs
And either works in Mu3 and Mu4
In reply to And either works in Mu3 and… by Jojo-Schmitz
I do not know where or how to put these in the plugin.
In the meantime, I have published my Shakuhachi notation plugin for V4 that does not allow font size changes.
https://musescore.org/en/project/shakuhachi-notation-fingering
In reply to I do not know where or how… by tcbnhrs
By doing this, the problem was solved.
text.fontSize=fontSize;
In reply to By doing this, the problem… by tcbnhrs
Sometimes life can be so easy ;-)