lib/text/figlet/font.rb in text-0.1.13 vs lib/text/figlet/font.rb in text-0.1.14
- old
+ new
@@ -4,11 +4,13 @@
class UnknownFontFormat < StandardError
end
class Font
def initialize(filename, load_german = true)
+ Text.raise_19_incompat
+
file = File.open(filename, 'rb')
-
+
header = file.gets.strip.split(/ /)
raise UnknownFontFormat if 'flf2a' != header[0][0, 5]
@hard_blank = header.shift[-1, 1]
\ No newline at end of file