]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4992/3: Add never-embed-font-list for Type 1 (PFA and PFB) fonts
authorMasamichi Hosoda <trueroad@trueroad.jp>
Fri, 28 Oct 2016 14:14:32 +0000 (23:14 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Wed, 9 Nov 2016 13:28:45 +0000 (22:28 +0900)
When you use `-dgs-never-embed-fonts` option,
Ghostscript never embed Type 1 (PFA and PFB) fonts for PDF file output.

scm/framework-ps.scm

index 248b3ee0ac5b15e18d73b8dcfb023646439a6153..a6465a02ee764e751cb9f39bb787a30af1253e7e 100644 (file)
       (cond
        ((eq? font-format (string->symbol "Type 1"))
         ;; Type 1 (PFA and PFB) fonts
-        (ly:type1->pfa file-name))
+        (begin (set! never-embed-font-list
+                     (append never-embed-font-list (list name)))
+               (ly:type1->pfa file-name)))
        ((eq? font-format 'TrueType)
         ;; TrueType fonts (TTF) and TrueType Collection (TTC)
         (ly:ttf->pfa file-name font-index))