summaryrefslogtreecommitdiff
path: root/mf
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2015-06-12 17:17:56 +0900
committerMasamichi Hosoda <trueroad@trueroad.jp>2015-06-17 19:47:10 +0900
commit28f58ecc2271956e9377dc61e5135ce3ade4abbd (patch)
treee56b281c48ff513b5471f552e1456e49f4946e74 /mf
parent0c3ccff5943a1b5cfea65f695b87a8d2262e0f97 (diff)
Issue 4441 / 4: Define default fonts in fontconfig configuration file
This commit defines LilyPond default fonts in local fontconfig configuration file. And, LilyPond uses them. It is possible to combine multiple fonts with different character sets and glyphs each other. e.g. Following fonts can be combined. Latin glyphs: from a font without Cyrillic glyphs Cyrillic glyphs: from another font with Cyrillic glyphs
Diffstat (limited to 'mf')
-rw-r--r--mf/lilypond-fonts.conf.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/mf/lilypond-fonts.conf.in b/mf/lilypond-fonts.conf.in
index 43e52c8578..3cd59becad 100644
--- a/mf/lilypond-fonts.conf.in
+++ b/mf/lilypond-fonts.conf.in
@@ -1,4 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
+
+ <!-- Define LilyPond default fonts -->
+
+ <alias binding="strong">
+ <family>LilyPond Serif</family>
+ <prefer>
+ <family>Century Schoolbook L</family>
+ <family>DejaVu Serif</family>
+ </prefer>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+
+ <alias binding="strong">
+ <family>LilyPond Sans Serif</family>
+ <prefer>
+ <family>Nimbus Sans L</family>
+ <family>DejaVu Sans</family>
+ </prefer>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+ <alias binding="strong">
+ <family>LilyPond Monospace</family>
+ <prefer>
+ <family>Nimbus Mono L</family>
+ <family>DejaVu Sans Mono</family>
+ </prefer>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+
</fontconfig>