On 19.03.2016 16:49, 15221328968 wrote:
I know that English and Chinese words can be displayed as lyric. So I guess that maybe there is some configuration files where I can let the lilypond find the ttf font made by myself. But I don't know how to do that.

There are different ways in LilyPond to adjust fonts. In your case, you might want something like:

%%%%%%%%%%
\score {
  <<
    { c c c c }
    \addlyrics { this is the text }
  >>
  \layout {
    \context {
      \Lyrics
      \override LyricText.font-name = "EB Garamond"
    }
  }
}
%%%%%%%%%%

Just change "EB Garamond" to the name of the font you need; if it is installed on the system, Lily should find it.

Else you can change fonts globally by something like:

%%%%%%%
\paper {
  fonts = #(make-pango-font-tree
"EB Garamond" ; ‘roman’ or ‘serif’ font, used by default for Lyrics
            "Alegreya Sans" ; ‘sans-serif’ font
            "Ubuntu Mono" ; ‘monospaced’ font
            (/ (* staff-height pt) 2.5))
}
%%%%%%%

HTH, Simon

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to