lib/ttfunk/table/cmap/subtable.rb in ttfunk-1.6.2.1 vs lib/ttfunk/table/cmap/subtable.rb in ttfunk-1.7.0

- old
+ new

@@ -55,13 +55,13 @@ parse_from(@offset) do @format = read(2, 'n').first case @format - when 0 then extend(TTFunk::Table::Cmap::Format00) - when 4 then extend(TTFunk::Table::Cmap::Format04) - when 6 then extend(TTFunk::Table::Cmap::Format06) + when 0 then extend(TTFunk::Table::Cmap::Format00) + when 4 then extend(TTFunk::Table::Cmap::Format04) + when 6 then extend(TTFunk::Table::Cmap::Format06) when 10 then extend(TTFunk::Table::Cmap::Format10) when 12 then extend(TTFunk::Table::Cmap::Format12) end parse_cmap! @@ -69,10 +69,10 @@ end def unicode? platform_id == 3 && (encoding_id == 1 || encoding_id == 10) && format != 0 || - platform_id == 0 && format != 0 + platform_id.zero? && format != 0 end def supported? false end