Changing the default text font family: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Here is how to override the default font families for text. | |||
<div class="nodoc"> | <div class="nodoc"> | ||
Note: Starting with LilyPond 2.25.4, font selection works differently; the most usual cases can be handled by {{Convert-ly- | Note: Starting with LilyPond 2.25.4, font selection works differently; the most usual cases can be handled by {{Convert-ly-stable}}. See the [{{LILYSTABLEDOC}}/notation/fonts ‘Notation’ manual] for more information. | ||
</div> | </div> | ||
<lilypond version="2. | <lilypond version="2.26"> | ||
%{ | %{ | ||
You may have to install additional fonts. | You may have to install additional fonts. | ||
| Line 16: | Line 16: | ||
\paper { | \paper { | ||
property-defaults.fonts.serif = "DejaVu Serif" | |||
property-defaults.fonts.sans = "DejaVu Sans" | |||
property-defaults.fonts.typewriter = "DejaVu Sans Mono" | |||
} | } | ||
| Line 38: | Line 28: | ||
} | } | ||
g4_\markup { | g4_\markup { | ||
\ | \sans { | ||
DejaVu Sans: \bold bold | DejaVu Sans: \bold bold | ||
\italic italic | \italic italic | ||
| Line 45: | Line 35: | ||
} | } | ||
g''2^\markup { | g''2^\markup { | ||
\ | \typewriter { | ||
DejaVu Sans Mono: \bold bold | DejaVu Sans Mono: \bold bold | ||
\italic italic | \italic italic | ||