Sha256: 489fc06e806c48303e74bb3735d6e49eb92292e3061bda3041672786002aa72f
Contents?: true
Size: 568 Bytes
Versions: 34
Compression:
Stored size: 568 Bytes
Contents
require 'ttfunk/subset/unicode' require 'ttfunk/subset/unicode_8bit' require 'ttfunk/subset/mac_roman' require 'ttfunk/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
34 entries across 34 versions & 10 rubygems