lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do we want special versions of the accidentals for use with text?


From: Werner LEMBERG
Subject: Re: do we want special versions of the accidentals for use with text?
Date: Wed, 28 Sep 2011 07:31:02 +0200 (CEST)

>> * decrease the size of all accidentals in markups.
> 
> I also think they are too big.  The question is, how should we
> achieve that?  Is there something like
> "musical-glyphs-font-size-when-used-in-markups"?

Good question.  AFAIK, there isn't such a predefined scaling value
which might be a good thing in general.

>> In fact, the accidentals shouldn't overshoot the height of a normal text:
>> not higher than 'f' and not lower than 'g'.
> 
> Yes, approximately.

I think the question is rather where to position the glyph's baseline.

>> It would be interesting to see trailing accidentals if combined with
>> digits from a figured bass.  Maybe we should have a third, different
>> looking set of accidentals?
> 
> Maybe, but i'd prefer to avoid this if possible for the sake of
> simplicity.

Mhmm, we are using Metafont!  Given the many different noteheads,
controlled by a bunch of meta-variables, I don't see a reason to not
do the same for accidentals, if necessary.  Admittedly, this isn't an
urgent issue, but it was you who has started this thread :-)

> There are two different ways we would like to align accidentals [...]
>
> The first method (for use with text) should be implemented by moving
> the baseline of the glyphs, i think.

Yes.

> For the second method, i see two possibilities:
> - use bounding box (adjusted a bit), i.e. the bottom of bounding box
> becomes baseline (i hope its possible?); see attachment 2,

No.  As soon as other characters are involved, the first method should
be used.

> - vertically center the accidental on parent grob.

No.  There is a similar problem in TeX, namely to align a complex
inline mathematical formula along the text line around it.  The only
solution which really works is to align the baselines.  Centering
glyphs gives horrible results; for example, just look at the way how
Wikipedia displays formulae (if converted to little inline gif images)
if you select a different text size for the text.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]