class HexaPDF::Font::Encoding::DifferenceEncoding
See: PDF2.0 s9.6.5.1
The difference encoding uses a base encoding that can be overlayed with additional mappings.
def code(name)
Returns the code for the given glyph name, either from this object, if a code references
def code(name) code_to_name.key(name) || base_encoding.code(name) end
def initialize(base_encoding)
def initialize(base_encoding) super() @base_encoding = base_encoding end
def name(code)
Returns the name for the given code, either from this object, if it contains the code, or
def name(code) code_to_name[code] || base_encoding.name(code) end