Hi Joram,
I am not sure why \bold and \italic aren't working in your example, but you
can still use overrides within the markup blocks to get what you want, e.g.
\markup { Andante \override #'(font-name . "Century Schoolbook L italic")
con }
If you will be doing the override frequently you can make a function for it:
#(define-markup-command (centuryItalic layout props text)
(markup?)
(interpret-markup layout props
(markup #:override '(font-name . "Century Schoolbook L italic") text
)))
and then use \centuryItalic instead of \italic.
I hope that makes sense,
Kevin
On Thu, Feb 12, 2015 at 2:12 PM, Noeck <[email protected]> wrote:
> Hi,
>
> I want to use a different font in general (titles, lyrics, etc.) but keep
> Century Schoolbook L for some parts like MetronomeMarks and BarNumbers.
> How can I do that without loosing the ability to choose the font
> weight/shape in
> the markup using \bold, \italic or \medium?
>
> \version "2.18.2"
>
> \paper {
> fonts = #
> (make-pango-font-tree
> "Linux Libertine O"
> "Linux Biolinum O"
> "Ubuntu Mono"
> (/ (* staff-height pt) 2.5))
> }
>
> {
> \tempo \markup { Andante \italic con \bold moto \medium etc } a1^"good as
> before with Century S. but I want a different font" \break
> \override Score.MetronomeMark.font-name = #"Century Schoolbook L"
> \tempo \markup { Andante \italic con \bold moto \medium etc } a1^"bad:
> not
> bold by default, ignores bold and italic" \break
> \override Score.MetronomeMark.font-name = #"Century Schoolbook L bold"
> \tempo \markup { Andante \italic con \bold moto \medium etc } a1^"bad:
> ignores
> medium and italic"
> }
>
> Joram
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user