class Metanorma::CollectionRenderer::PdfOptionsNode

Public Class Methods

new(doctype, options) click to toggle source
# File lib/metanorma/collection_renderer.rb, line 106
def initialize(doctype, options)
  doc_proc = Metanorma::Registry.instance.find_processor(doctype)
  @font_locations = FontistUtils.fontist_font_locations(doc_proc, options)
end

Public Instance Methods

attr(key) click to toggle source
# File lib/metanorma/collection_renderer.rb, line 111
def attr(key)
  if key == "mn2pdf-font-manifest-file" && @font_locations
    @font_locations.path
  end
end