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(flavor, options) ⇒ PdfOptionsNode
constructor
A new instance of PdfOptionsNode.
Constructor Details
#initialize(flavor, options) ⇒ PdfOptionsNode
Returns a new instance of PdfOptionsNode.
157 158 159 160 161 162 163 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 157 def initialize(flavor, ) p = Metanorma::Registry.instance.find_processor(flavor) if ::Metanorma::Util::FontistHelper.has_custom_fonts?(p, , {}) @fonts_manifest = ::Metanorma::Util::FontistHelper.location_manifest(p, ) end end |
Instance Method Details
#attr(key) ⇒ Object
165 166 167 168 169 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 165 def attr(key) if key == "fonts-manifest" && @fonts_manifest @fonts_manifest end end |