module HexaPDF::Font::Encoding
Contains implementations of the encodings used for fonts.
Public Class Methods
for_name(name)
click to toggle source
Returns the encoding object for the given name, or nil
if no such encoding is available.
# File lib/hexapdf/font/encoding.rb, line 55 def self.for_name(name) case name when :WinAnsiEncoding then @win_ansi ||= WinAnsiEncoding.new when :MacRomanEncoding then @mac_roman ||= MacRomanEncoding.new when :StandardEncoding then @standard ||= StandardEncoding.new when :MacExpertEncoding then @mac_expert ||= MacExpertEncoding.new when :SymbolEncoding then @symbol ||= SymbolEncoding.new when :ZapfDingbatsEncoding then @zapf_dingbats ||= ZapfDingbatsEncoding.new else nil end end