lib/ttfunk/table/post.rb in ttfunk-1.5.1 vs lib/ttfunk/table/post.rb in ttfunk-1.6.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require_relative '../table' module TTFunk class Table class Post < Table @@ -15,10 +17,11 @@ attr_reader :subtable def self.encode(post, mapping) return nil unless post.exists? + post.recode(mapping) end def fixed_pitch? @fixed_pitch != 0 @@ -80,10 +83,14 @@ parse_format! end def parse_format! - warn format('postscript table format 0x%08X is not supported', @format) + warn( + Kernel.format( + 'postscript table format 0x%08X is not supported', @format + ) + ) end end end end