Class: Metanorma::CollectionRenderer::PdfOptionsNode
- Inherits:
-
Object
- Object
- Metanorma::CollectionRenderer::PdfOptionsNode
- Defined in:
- lib/metanorma/collection_renderer.rb
Instance Method Summary collapse
- #attr(key) ⇒ Object
-
#initialize(doctype, options) ⇒ PdfOptionsNode
constructor
A new instance of PdfOptionsNode.
Constructor Details
#initialize(doctype, options) ⇒ PdfOptionsNode
Returns a new instance of PdfOptionsNode.
106 107 108 109 |
# File 'lib/metanorma/collection_renderer.rb', line 106 def initialize(doctype, ) doc_proc = Metanorma::Registry.instance.find_processor(doctype) @font_locations = FontistUtils.fontist_font_locations(doc_proc, ) end |
Instance Method Details
#attr(key) ⇒ Object
111 112 113 114 115 |
# File 'lib/metanorma/collection_renderer.rb', line 111 def attr(key) if key == "mn2pdf-font-manifest-file" && @font_locations @font_locations.path end end |