lib/hexapdf/document/fonts.rb in hexapdf-0.4.0 vs lib/hexapdf/document/fonts.rb in hexapdf-0.5.0
- old
+ new
@@ -65,10 +65,11 @@
end
if font
@loaded_fonts_cache[[name, options]] = font
else
- raise HexaPDF::Error, "The requested font '#{name}' couldn't be found"
+ raise HexaPDF::Error, "The requested font '#{name}' in variant '#{options[:variant]}' " \
+ "couldn't be found"
end
end
private