]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3186: fix clef transposition alignment
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Wed, 3 Apr 2013 19:46:56 +0000 (21:46 +0200)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Sat, 16 Aug 2014 21:39:07 +0000 (23:39 +0200)
commit21a1e3b8267fd76ff261ed9f01e833d5d04703e7
treef09073a537fd470966fd0ebb46a4eb317456d382
parent261427ec6dff8415dbabf4406293887aa943abcb
Issue 3186: fix clef transposition alignment

Until now, numbers indicating clef transposition (for example
in \clef "G_8") were simply centered against the clef glyph.
This was not optimal, because clef glyphs aren't symmetrical
- for example the hook of the treble clef isn't exactly at its
horizontal center, and thus the octavation number shouldn't
be exactly centered.

This commit allows to specify alignment separately for each
clef, taking into account their individual characteristics.
Alignments are stored in clef-alignments property.
input/regression/clef-transposition-placement.ly
lily/clef-modifier.cc [new file with mode: 0644]
scm/define-grob-interfaces.scm
scm/define-grob-properties.scm
scm/define-grobs.scm