Sha256: 0340b932bbaa91815047da9697fbe62529df9c4534abe72251b124113ad3fd71
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
require_relative 'subset/unicode' require_relative 'subset/unicode_8bit' require_relative 'subset/mac_roman' require_relative 'subset/windows_1252' module TTFunk module Subset 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 end end
Version data entries
4 entries across 3 versions & 2 rubygems