Hi Simon,

you can use all the font mechanisms if you don't specify the font via
font-name.

If you use font-name, all the font-shape and font-series things don't
work anymore (which is kind of understandable from the internals but
certainly not expected by most users). But If you add a font in the
paper block, you can use it via font-family and then you have access to
the whole family including -series and -shape:


\version "2.19.50"
\paper {
  #(add-pango-fonts fonts 'ubuntu "Ubuntu"
     (/ (* staff-height pt) 2.5))
}
% now 'ubuntu is a font-family you can use

{
  1-\tweak font-encoding #'latin1 \tweak font-family #'ubuntu
  \tweak font-size 6 \tweak font-shape #'italic -3
}


HTH,
Joram

PS: Cudos to Abraham who showed me this!

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to