Class: Metanorma::CollectionRenderer::PdfOptionsNode

Inherits:
Object
  • Object
show all
Defined in:
lib/metanorma/collection_renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(doctype, options) ⇒ PdfOptionsNode

Returns a new instance of PdfOptionsNode.



88
89
90
91
# File 'lib/metanorma/collection_renderer.rb', line 88

def initialize(doctype, options)
  doc_proc = Metanorma::Registry.instance.find_processor(doctype)
  @font_locations = FontistUtils.fontist_font_locations(doc_proc, options)
end

Instance Method Details

#attr(key) ⇒ Object



93
94
95
96
97
# File 'lib/metanorma/collection_renderer.rb', line 93

def attr(key)
  if key == "mn2pdf-font-manifest-file" && @font_locations
    @font_locations.path
  end
end