# File lib/ttfunk/subset.rb, line 8
    def self.for(original, encoding)
      case encoding.to_sym
        when :unicode      then Unicode.new(original)
        when :unicode_8bit then Unicode8Bit.new(original)
        when :mac_roman    then MacRoman.new(original)
        when :windows_1252 then Windows1252.new(original)
        else raise NotImplementedError, "encoding #{encoding} is not supported"
      end
    end