lilypond-user
[Top][All Lists]
Advanced

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

Can we change text font while keep it italic?


From: Fan Hongtao
Subject: Can we change text font while keep it italic?
Date: Tue, 29 Jan 2019 16:51:11 +0800

Hi all,

When I write italic text in markup, code looks like

\version "2.18.2"
\markup {
  \italic { Hello, world. }
}


If I change font in the markup, the text are not italic anymore.

\version "2.18.2"
\markup {
  \override #'(font-name . "Century")
  \italic { Hello, world. }
}

font-name (string)
Specifies a file name (without extension) of the font to load. This setting overrides
selection using font-family, font-series and font-shape.

So I try to reset these properties.

\version "2.18.2"
\markup {
  \override #'(font-name . "Century")
  \override #'(font-family . roman)
  \override #'(font-series . medium)
  \override #'(font-shape . italic)
  \italic { Hello, world. }
}

Unfortunately, it does not work. Any suggestion?

--
Best Wishes,
Fan Hongtao
----------------------------------------------------
I have a dream. 

Attachment: font.ly
Description: Text Data


reply via email to

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