Page 1 of 1

[MuseScore] Kerning of accidentals

Posted: 01 Dec 2015, 14:02
by OCTO
Very nice. Tried in Finale 2014 and the result is negative.
This one rocks!
Screen Shot 2015-12-01 at 14.58.41.png
Screen Shot 2015-12-01 at 14.58.41.png (24.04 KiB) Viewed 13010 times

Re: [MuseScore] Kerning of accidentals

Posted: 01 Dec 2015, 14:18
by tisimst
OCTO wrote:Very nice. Tried in Finale 2014 and the result is negative.
This one rocks!
That's because MS uses the special "cutOutXXX" anchors in the accidental glyphs (as defined by the SMuFL standard) specifically for this purpose.

Re: [MuseScore] Kerning of accidentals

Posted: 01 Dec 2015, 14:24
by OCTO
You speak for me an alien language, tisimst... :-)
But I guess what you want to say!

Re: [MuseScore] Kerning of accidentals

Posted: 01 Dec 2015, 20:08
by Knut
OCTO wrote:You speak for me an alien language, tisimst... :-)
But I guess what you want to say!
Haha, yes, this aspect is definitely not meant for the uninitiated (read: non developers/designers) to worry about.

Basically, for certain glyphs, SMuFL includes specific coordinates that an application may use to consider any 'cut outs' or white space within a glyph's bounding box when kerning glyphs automatically. That way, glyphs like accidentals can be automatically kerned beyond the borders of their bounding box. Here's an illustration:
SMuFL cutOuts.png
SMuFL cutOuts.png (211.37 KiB) Viewed 12999 times

Re: [MuseScore] Kerning of accidentals

Posted: 02 Dec 2015, 21:29
by tisimst
In effect, this changes the accidental kerning from the left group to the right one (this is taken from the SMuFL manual):
accidental-kerning-smufl-example.png
accidental-kerning-smufl-example.png (43.3 KiB) Viewed 12981 times

Re: [MuseScore] Kerning of accidentals

Posted: 02 Dec 2015, 22:05
by Knut
tisimst wrote: (this is taken from the SMuFL manual)
Just to be clear, so was mine.

Re: [MuseScore] Kerning of accidentals

Posted: 03 Dec 2015, 07:04
by OCTO
Thanks for that, it is explained very well!

Re: [MuseScore] Kerning of accidentals

Posted: 03 Dec 2015, 18:51
by tisimst
And just for the record, LilyPond also kerns accidentals (always has,even before SMuFL was born), though it appears to not be quite as tight as the MS one above:
lilypond-accidental-kerning.png
lilypond-accidental-kerning.png (12.17 KiB) Viewed 12958 times

Re: [MuseScore] Kerning of accidentals

Posted: 03 Dec 2015, 21:20
by Knut
tisimst wrote:And just for the record, LilyPond also kerns accidentals (always has,even before SMuFL was born), though it appears to not be quite as tight as the MS one above:
lilypond-accidental-kerning.png
How does Lilypond handle this with other fonts than the default. Does it kern each type of accidental by a set amoun, or does it analyze the shape in any way?

Re: [MuseScore] Kerning of accidentals

Posted: 04 Dec 2015, 17:54
by tisimst
Knut wrote:How does Lilypond handle this with other fonts than the default. Does it kern each type of accidental by a set amoun, or does it analyze the shape in any way?
It looks like it actually solves a horizontal skyline problem, in combination with some basic assumptions (e.g., accidentals an octave away shouldn't collide, so no offset is necessary, etc.). In other words, it does take the side contours of the accidental glyphs into account and then pads them.