Tony Mountifield wrote
> In article <

> 515B6BB1.2000206@

>>,
> Marc Sabatella &lt;

> marc@

> &gt; wrote:
>> > c) If chords are dragged vertically to be clear of each other, they 
>> > are allowed to overlap horizontally.
>> 
>> This seems a bit glitchy.  I have to move a chord way above the others 
>> in order to get the space to close up.  Although maybe that's a question 
>> of font metrics - just because the chord appears to clear the others 
>> doesn't mean their bounding boxes do.  Not a big deal, though.
> 
> Yes, I noticed that too. Perhaps yet another style parameter to set the
> amount of vertical overlap to accept without horizontal spacing kicking
> in.
> It might even be useful to make the default non-zero, e.g. 0.2sp.

FWIW, I think too it has to do with bounding boxes. Tony, you probably are
aware of it, but you may try playing with
QFontMetricsF::tightBoundingRect(QString) to get the 'inked' bounding box of
a string, i.e. the bounding box of the visible marks, rather than the design
bounding box of the glyphs, which includes bearings, leading(s) and so on.


>> One thing I do see is that the spacing appears only partially 
>> implemented until you leave chord edito mode completely.  That is, when 
>> you first add a chord and hit the space bar, it just adds space to the 
>> next note.  Only when you hit Esc does the measure respace itself 
>> completely.  Not a problem necessarily; I just wanted to be sure this is 
>> intentional / known.
> 
> I'll have a look at this in more detail. It's probably to do with mode
> switching (or not, when using space) and layout flags.

Something of this kind also happens to Figured bass.

I believe it has to do with the various Score::end1(), Score::end2(),
Score:endCmd(), MuseScore::endCmd() mehods. I have never really understood
them (or seen them documented...).

For the moment being, I decided to leave things as they are for FigBass, as
they ultimately get in place correctly, but improvements would be welcome!

Maurizio



--
View this message in context: 
http://dev-list.musescore.org/Layout-of-harmony-elements-tp7577907p7577991.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to