Module: TTFunk::Subset
- Defined in:
- lib/ttfunk/subset.rb,
lib/ttfunk/subset/base.rb,
lib/ttfunk/subset/unicode.rb,
lib/ttfunk/subset/mac_roman.rb,
lib/ttfunk/subset/unicode_8bit.rb,
lib/ttfunk/subset/windows_1252.rb
Defined Under Namespace
Classes: Base, MacRoman, Unicode, Unicode8Bit, Windows1252
Class Method Summary collapse
Class Method Details
.for(original, encoding) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# 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 |