Skip to content

Commit

Permalink
fontist manifest catch, metanorma/metanorma-iso#910
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Feb 3, 2023
1 parent e4ab48b commit 767663b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mn2pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require "rbconfig"
require "tempfile"
require "yaml"
require "fileutils"

module Mn2pdf
MN2PDF_JAR_PATH = File.join(File.dirname(__FILE__), "../bin/mn2pdf.jar")
Expand Down Expand Up @@ -51,6 +52,7 @@ def self.convert(url_path, output_path, xsl_stylesheet, options = {})
if manifest
dump_fontist_manifest_locations(manifest) do |manifest_path|
cmd << "--font-manifest" << quote(manifest_path)
FileUtils.cp(manifest_path, manifest_path + ".copy.yml")
mn2pdf(cmd)
end
else
Expand Down

0 comments on commit 767663b

Please sign in to comment.