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?
#[], #[]=, 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
#arlington_object
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, pdf_type, #pdf_type, #ref
Instance Method Details
#blend_axis_types ⇒ Object
17
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 17
def blend_axis_types; self[:BlendAxisTypes]; end
|
#char_range ⇒ Object
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
|
16
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 16
def encoding; self[:Encoding]; end
|
#first_char ⇒ Object
12
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 12
def first_char; self[:FirstChar]; end
|
#first_char_or_default ⇒ Object
23
24
25
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 23
def first_char_or_default
first_char || 0
end
|
#font_descriptor ⇒ Object
15
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 15
def font_descriptor; self[:FontDescriptor]; end
|
#last_char ⇒ Object
13
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 13
def last_char; self[:LastChar]; end
|
#last_char_or_default ⇒ Object
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
|
11
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 11
def name; self[:Name]; end
|
10
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 10
def subtype; self[:Subtype]&.to_sym; end
|
14
|
# File 'lib/pdfrb/model/type/font_multiple_master.rb', line 14
def widths; self[:Widths]; end
|