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.



114
115
116
117
118
119
# File 'lib/metanorma/collection_renderer.rb', line 114

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



121
122
123
124
125
# File 'lib/metanorma/collection_renderer.rb', line 121

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