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. }
}

User backend properties
<http://lilypond.org/doc/v2.18/Documentation/internals/user-backend-properties>
says:

> 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.
http://fanhongtao.github.io/ <http://www.fanhongtao.org/>
\version "2.18.2"

\markup {
  \override #'(font-name . "Century")
  \override #'(font-family . roman)
  \override #'(font-series . medium)
  \override #'(font-shape . italic)
  \italic { Hello, world. }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to