summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2016-05-30 00:24:09 +0900
committerMasamichi Hosoda <trueroad@trueroad.jp>2016-06-06 22:47:08 +0900
commit82ec86efa563fab5e5978d66a2ead530c8dceb60 (patch)
tree54477164ce6813d3f0213f22fe7ce0faad4beaee
parent58d22c26c9ed6f1845ebb5a7f36bdba8edf1b03b (diff)
Issue 4867: Ignore some major OpenType/CFF Collection (OTC) fonts
Current LilyPond cannot handle OpenType/CFF Collection (OTC) fonts (NotoSansCJK.ttc and SourceHanSans.ttc etc.). This commit is a workaround that ignores some major OTC fonts for avoiding errors. TODO: Add OTC fonts support and remove this settings
-rw-r--r--mf/99-lilypond-fonts.conf.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/mf/99-lilypond-fonts.conf.in b/mf/99-lilypond-fonts.conf.in
index 83f8b5376e..0831bf062c 100644
--- a/mf/99-lilypond-fonts.conf.in
+++ b/mf/99-lilypond-fonts.conf.in
@@ -16,4 +16,45 @@
</rejectfont>
</selectfont>
+ <!--
+ LilyPond cannot handle OpenType/CFF Collection (OTC) fonts
+ (NotoSansCJK.ttc and SourceHanSans.ttc etc.).
+ This settings is a workaround that ignores some major OTC fonts
+ for avoiding errors.
+ TODO: Add OTC fonts support and remove this settings
+ -->
+
+ <selectfont>
+ <rejectfont>
+ <!--
+ Noto Sans CJK
+ https://www.google.com/get/noto/help/cjk/
+
+ `CJK OTF fonts with different default language' and
+ `Region specific OTF subsets' can be used.
+ Their file names are `NotoSans*.otf'.
+ -->
+ <glob>*/NotoSansCJK*.ttc</glob>
+
+ <!--
+ Source Han Sans
+ https://github.com/adobe-fonts/source-han-sans
+
+ `Language-specific OTFs' and
+ `Region-specific Subset OTFs' can be used.
+ Their file names are `SourceHanSans*.otf'.
+ -->
+ <glob>*/SourceHanSans*.ttc</glob>
+
+ <!--
+ Source Han Code JP
+ https://github.com/adobe-fonts/source-han-code-jp
+
+ `OTF' can be used.
+ Their file names are `SourceHanCodeJP-*.otf'.
+ -->
+ <glob>*/SourceHanCodeJP.ttc</glob>
+ </rejectfont>
+ </selectfont>
+
</fontconfig>