module HexaPDF::FontLoader::FromConfiguration

def self.available_fonts(document)

Returns a hash of the form 'font_name => [variants, ...]' of the configured fonts.
def self.available_fonts(document)
  document.config['font.map'].transform_values(&:keys)
end