Fonts in Lilypond verwenden

Zur Navigation springen Zur Suche springen

Andere Musikzeichensätze nutzen

\paper {
  #(include-special-characters) % Sonderzeichenliste einfügen
  #(define fonts
     (set-global-fonts
      #:music "Ross"
      #:brace "emmentaler"
      #:roman "Century Schoolbook L"
      #:sans "sans-serif"
      #:typewriter "monospace"
      ))
}

Windows

Die Dateien für die Fonts befinden sich im Lilypond-Unterverzeichnis \usr\share\lilypond\current\fonts, die Dateien in die entsprechenden Unterverzeichnisse (otf, svg und type1) kopieren. Beim nächsten Start sollte Lilypond die Fonts erkennen.

Font Cache

Bei Problemen mit Schriftarten den Font-Cache %user%\.lilypond-fonts.cache-2 löschen. Lilypond braucht beim nächsten Aufruf länger zum Kompilieren, danach läuft alles wieder normal. Bisher hat es nicht geklappt, die installierte Schriftart Forte in Lilypond zu verwenden, trotz Leeren des Fontcaches.

Lilypond-Code für Fonttest

\version "2.19.82"
\language "deutsch"

#(set! paper-alist (cons '("tall" . (cons (* 110 mm) (* 460 mm))) paper-alist))
\paper {
  #(set-paper-size "tall")
  tagline = ##f
}

\paper {
  tagline = ##f
  indent = #0
  #(set-paper-size "tall")
  oddFooterMarkup = ##f
  oddHeaderMarkup = ##f
  evenFooterMarkup = ##f
  evenHeaderMarkup = ##f
  markup-markup-spacing.padding = #2
}

fname = #"Liberation Serif"

\markup \fontsize #3 \bold \line { "Schriftart: " #fname }
buhy = \markup \left-column
\override #`(font-name . ,fname)

{
  "Land der Berge, Land am Strome"
  "abcdefghijklmnopqrstuvwxyzäöüß"
  "ABCDEFGHIJKLMOPQRSTUVWXYZÄÖÜ"
  "1234567890!\"§$%&/()=?"
  \concat { "@<>|,.-;:_#'+*µ" \char ##x1D106 \char ##x1D107 \char ##x03EE \char ##x03B1 \char ##x03C9 \char ##x0153 \char ##x00A9 }
}

\markup "\\fontsize #2"
\markup \fontsize #2 \buhy
\markup \rounded-box "\\italic"
\markup \italic \buhy
\markup \rounded-box "\\bold"
\markup \bold \buhy
\markup \rounded-box "\\medium"
\markup \medium \buhy
\markup \rounded-box "\\caps"
\markup \caps \buhy
\markup \rounded-box "\\sans"
\markup \sans \buhy
\markup \rounded-box "\\smallCaps"
\markup \smallCaps \buhy
\markup \rounded-box "\\buhy"
\markup \roman \buhy
\markup \rounded-box "\\override #'(font-features . (\"smcp\"))"
\markup \override #'(font-features . ("smcp")) \buhy
\markup \rounded-box "\\typewriter"
\markup \typewriter \buhy

Links

1=*Internals 3.2.36 font-interface