lib/hexapdf/font_loader/from_configuration.rb in hexapdf-0.40.0 vs lib/hexapdf/font_loader/from_configuration.rb in hexapdf-0.41.0
- old
+ new
@@ -60,10 +60,10 @@
#
# +subset+::
# Specifies whether the font should be subset if possible.
#
# This method uses the FromFile font loader behind the scenes.
- def self.call(document, name, variant: :none, subset: true)
+ def self.call(document, name, variant: :none, subset: true, **)
file = document.config['font.map'].dig(name, variant)
return nil if file.nil?
unless file.kind_of?(HexaPDF::Font::TrueType::Font) || File.file?(file)
raise HexaPDF::Error, "The configured font file #{file} is not a valid value"