Text truncates yOffset!?

• Jul 1, 2012 - 22:20

I tried to create a plugin for supporting the E-Z Play (c) music notation, which helps newcomers to remember the name and position of notes as the name of the note is written inside its head - see also this previous discussion .

Now I am stuck with an odd behaviour of text.yOffset. If I assign value with fractions (e.g. 4.5) to text.yOffset, the fractional part gets truncated:

          var text  = new Text(curScore);
          text.text = cursor.chord().topNote().name;
   	  text.yOffset = 4.5;
          cursor.putStaffText(text);
</p
 
text.yOffset is 4 after executing these lines. However, if I change the yOffset via menu, I can set it to any fractional (real) numbers and the text will change its position.That's how it should behave, inline with the online references for Text. 
 
Do you have any idea whether this behaviour is already knows (at least I couldn't find it in the documentation and the forums) and whether it is a bug or a feature.

Comments

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