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.
156 157 158 159 160 161 162 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 156 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
164 165 166 167 168 |
# File 'lib/metanorma/collection/renderer/utils.rb', line 164 def attr(key) if key == "fonts-manifest" && @fonts_manifest @fonts_manifest end end |