Class: TTFunk::Table::Cff::SubrIndex
- Defined in:
- lib/ttfunk/table/cff/subr_index.rb
Overview
CFF Subroutine index.
Instance Attribute Summary
Attributes inherited from SubTable
Instance Method Summary collapse
-
#bias ⇒ Integer
Subroutine index biase.
Methods inherited from Index
#[], #each, #encode, #items_count
Methods inherited from SubTable
Constructor Details
This class inherits a constructor from TTFunk::SubTable
Instance Method Details
#bias ⇒ Integer
Subroutine index biase. For correct subroutine selection the calculated bias must be added to the subroutine number operand before accessing the index.
Source Code
lib/ttfunk/table/cff/subr_index.rb, line 12
12 | def bias |
13 | if items.length < 1240 |
14 | 107
|
15 | elsif items.length < 33_900 |
16 | 1131
|
17 | else
|
18 | 32_768
|
19 | end
|
20 | end
|