Better lyrics alignment

This commit is contained in:
Matthias Neeracher 2007-04-22 06:19:50 +00:00
parent 1d3fc9e22b
commit 7339ccd659

View File

@ -138,8 +138,8 @@
NSSize sz = NSSize sz =
[syll sizeWithAttributes:sLyricsFont]; [syll sizeWithAttributes:sLyricsFont];
NSPoint syllLoc = NSPoint syllLoc =
NSMakePoint(fClefKeyW+(m+at)*fMeasureW NSMakePoint([self noteXInMeasure:m at:at]
+ 0.5f*(kNoteW-sz.width), - 0.5f*sz.width,
kSystemY+kLyricsY-stanza*kLyricsH); kSystemY+kLyricsY-stanza*kLyricsH);
if (note->fLyrics[stanza-1].fKind & VLSyllable::kHasNext) if (note->fLyrics[stanza-1].fKind & VLSyllable::kHasNext)
syll = [syll stringByAppendingString:@" -"]; syll = [syll stringByAppendingString:@" -"];