]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4994/3: Fix font exporting for internal fonts
authorMasamichi Hosoda <trueroad@trueroad.jp>
Tue, 1 Nov 2016 14:06:07 +0000 (23:06 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Wed, 9 Nov 2016 13:28:45 +0000 (22:28 +0900)
This commit fixes the conflict of `-dgs-load-fonts` option
and `-dfont-export-dir=[dir]`.

scm/framework-ps.scm

index 4df9ba3e6f90d52da14c257690ba0dbe24f5264b..4a17477cb8f29e1e6b069ed1380ed20cf1810485 100644 (file)
 
     (define (ps-load-file file-name)
       (if (string? file-name)
-          (if (string-contains file-name (ly:get-option 'datadir))
+          (if (and (not (ly:get-option 'font-export-dir))
+                   (string-contains file-name (ly:get-option 'datadir)))
               (begin
                 (set! file-name (ly:string-substitute (ly:get-option 'datadir)
                                                       "" file-name))