Class: Metanorma::CollectionRenderer::PdfOptionsNode

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

Instance Method Summary collapse

Constructor Details

#initialize(doctype, options) ⇒ PdfOptionsNode

Returns a new instance of PdfOptionsNode.



57
58
59
60
61
62
# File 'lib/metanorma/collection_render_utils.rb', line 57

def initialize(doctype, options)
  docproc = Metanorma::Registry.instance.find_processor(doctype)
  if FontistUtils.has_fonts_manifest?(docproc, options)
    @fonts_manifest = FontistUtils.location_manifest(docproc)
  end
end

Instance Method Details

#attr(key) ⇒ Object



64
65
66
67
68
# File 'lib/metanorma/collection_render_utils.rb', line 64

def attr(key)
  if key == "fonts-manifest" && @fonts_manifest
    @fonts_manifest
  end
end