lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup in absolute font size?


From: Reinhold Kainhofer
Subject: Re: Markup in absolute font size?
Date: Tue, 1 Jul 2008 19:41:01 +0200
User-agent: KMail/1.9.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 28. Juni 2008 schrieb Nicolas Sceaux:
> Le 28 juin 08 à 17:18, Reinhold Kainhofer a écrit :
> > Is there any way to specify the fontsize for a markup in absolute
> > size? [...]
> > The \fontsize only changes the relative size, but does not allow one
> > to set an absolute size.
>
> It seems that the following command does what you want, but I
> have not much tested it:
[...]
> I've added that command to git for people interested to play.

Thanks a lot, it works really great for text. However, any vertical space 
inserted with vspace (which is defined similar to hspace:
#(define-markup-command (vspace layout props amount) (number?)
  "This produces a invisible object taking vertical space."
    (if (> amount 0)
        (ly:make-stencil "" (cons -1 1) (cons 0 amount))
        (ly:make-stencil "" (cons -1 1) (cons amount amount))))
in my package) does increase its size with the global staff size :-(

I'm now looking for a way to create vertical (and horizontal) space, which 
which does not change size with the global staff size, so that the contents 
of the title page always look the same.
Check the attached file and try to run it with global staff size 5 and 35. 
You'll see a tremendous difference in the spacing in the two cases...

Alternatively, is there any way to insert stretchable space inside a markup 
(in particular a bookTitleMarkup)?

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIamwxTqjEwhXvPN0RAgD8AJ9Ve2oAhFEVWmScKa5yqarfjcKJ6QCeM2Lr
SEgn9dZDahyRY8gcQlU180U=
=2q3e
-----END PGP SIGNATURE-----

Attachment: markup-fontsize.pdf
Description: Adobe PDF document

Attachment: markup-fontsize.ly
Description: Text Data


reply via email to

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