Class: Metanorma::Collection::Renderer::PdfOptionsNode
- Inherits:
-
Object
- Object
- Metanorma::Collection::Renderer::PdfOptionsNode
- Defined in:
- lib/metanorma/collection/renderer/utils.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.
128 129 130 131 132 133 134 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 128 def initialize(doctype, ) p = Metanorma::Registry.instance.find_processor(doctype) if ::Metanorma::Util::FontistHelper.has_custom_fonts?(p, , {}) @fonts_manifest = ::Metanorma::Util::FontistHelper.location_manifest(p, ) end end |
Instance Method Details
#attr(key) ⇒ Object
136 137 138 139 140 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 136 def attr(key) if key == "fonts-manifest" && @fonts_manifest @fonts_manifest end end |