Class: Pdfrb::Model::Type::FontMultipleMaster

Inherits:
Font show all
Defined in:
lib/pdfrb/model/type/font_multiple_master.rb

Overview

MultipleMaster Type 1 font (s9.6.2.3). Type 1 font with additional design axes between masters. Deprecated in PDF 2.0.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from Font

#base_font, #cid?, #descendant_font, #embedded?, #font_file, #glyph_width, #simple?, #to_unicode, #type3?

Methods inherited from Cos::Dictionary

#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_scalar, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate

Methods included from Cos::ArlingtonBacked

#arlington_object

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, pdf_type, #pdf_type, #ref

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#blend_axis_typesObject



17
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 17

def blend_axis_types; self[:BlendAxisTypes]; end

#char_rangeObject



31
32
33
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 31

def char_range
  [first_char_or_default, last_char_or_default]
end

#encodingObject



16
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 16

def encoding; self[:Encoding]; end

#first_charObject



12
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 12

def first_char; self[:FirstChar]; end

#first_char_or_defaultObject



23
24
25
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 23

def first_char_or_default
  first_char || 0
end

#font_descriptorObject



15
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 15

def font_descriptor; self[:FontDescriptor]; end

#last_charObject



13
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 13

def last_char; self[:LastChar]; end

#last_char_or_defaultObject



27
28
29
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 27

def last_char_or_default
  last_char || 255
end

#mm_type1?Boolean



19
20
21
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 19

def mm_type1?
  subtype == :MMType1
end

#nameObject



11
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 11

def name; self[:Name]; end

#subtypeObject



10
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 10

def subtype; self[:Subtype]&.to_sym; end

#widthsObject



14
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 14

def widths; self[:Widths]; end