lib/fontist/import/otf/font_file.rb in fontist-1.5.0 vs lib/fontist/import/otf/font_file.rb in fontist-1.5.1
- old
+ new
@@ -75,10 +75,12 @@
attr_reader :info
def read
text = REQUIREMENTS[:otfinfo].call(@path)
- text.split("\n")
+ text
+ .encode("UTF-8", invalid: :replace, replace: "")
+ .split("\n")
.select { |x| x.include?(":") }
.map { |x| x.split(":", 2) }
.map { |x| x.map { |y| Fontist::Import::TextHelper.cleanup(y) } }
.to_h
end