]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4867: Ignore some major OpenType/CFF Collection (OTC) fonts
authorMasamichi Hosoda <trueroad@trueroad.jp>
Sun, 29 May 2016 15:24:09 +0000 (00:24 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Mon, 6 Jun 2016 13:47:08 +0000 (22:47 +0900)
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

mf/99-lilypond-fonts.conf.in

index 83f8b5376e3575a2f3af4cb451cde4e467ee8791..0831bf062cabf6d3547f6d592691d7b21d5773a7 100644 (file)
     </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>