@@ -127,7 +127,7 @@ table! {
127
127
format ( u16 ) , // format
128
128
coverage_offset ( u16 ) , // coverageOffset
129
129
backward_class_offset ( u16 ) , // backtrackClassDefOffset
130
- input_class_offset ( u16 ) , // inputClassDefOffset
130
+ class_offset ( u16 ) , // inputClassDefOffset
131
131
forward_class_offset ( u16 ) , // lookaheadClassDefOffset
132
132
record_count ( u16 ) , // chainedClassSeqRuleSetCount
133
133
@@ -143,8 +143,8 @@ table! {
143
143
jump_take!( tape, position, this. backward_class_offset)
144
144
} ,
145
145
146
- input_class ( Class ) |this, tape, position| {
147
- jump_take!( tape, position, this. input_class_offset )
146
+ class ( Class ) |this, tape, position| {
147
+ jump_take!( tape, position, this. class_offset )
148
148
} ,
149
149
150
150
forward_class ( Class ) |this, tape, position| {
@@ -168,10 +168,10 @@ table! {
168
168
tape. take_given( this. backward_glyph_count as usize )
169
169
} ,
170
170
171
- input_glyph_count ( u16 ) , // inputGlyphCount
171
+ glyph_count ( u16 ) , // inputGlyphCount
172
172
173
- input_coverage_offsets ( Vec <u16 >) |this, tape, _| { // inputCoverageOffsets
174
- tape. take_given( this. input_glyph_count as usize )
173
+ coverage_offsets ( Vec <u16 >) |this, tape, _| { // inputCoverageOffsets
174
+ tape. take_given( this. glyph_count as usize )
175
175
} ,
176
176
177
177
forward_glyph_count ( u16 ) , // lookaheadGlyphCount
@@ -190,8 +190,8 @@ table! {
190
190
jump_take!( tape, position, this. backward_glyph_count, this. backward_coverage_offsets)
191
191
} ,
192
192
193
- input_coverages ( Vec <Coverage >) |this, tape, position| {
194
- jump_take!( tape, position, this. input_glyph_count , this. input_coverage_offsets )
193
+ coverages ( Vec <Coverage >) |this, tape, position| {
194
+ jump_take!( tape, position, this. glyph_count , this. coverage_offsets )
195
195
} ,
196
196
197
197
forward_coverages ( Vec <Coverage >) |this, tape, position| {
@@ -279,13 +279,13 @@ table! {
279
279
tape. take_given( this. backward_glyph_count as usize )
280
280
} ,
281
281
282
- input_glyph_count ( u16 ) , // inputGlyphCount
282
+ glyph_count ( u16 ) , // inputGlyphCount
283
283
284
- input_glyph_ids ( Vec <GlyphID >) |this, tape| { // inputSequence
285
- if this. input_glyph_count == 0 {
284
+ glyph_ids ( Vec <GlyphID >) |this, tape| { // inputSequence
285
+ if this. glyph_count == 0 {
286
286
raise!( "found a malformed chained context record" ) ;
287
287
}
288
- tape. take_given( this. input_glyph_count as usize - 1 )
288
+ tape. take_given( this. glyph_count as usize - 1 )
289
289
} ,
290
290
291
291
forward_glyph_count ( u16 ) , // lookaheadGlyphCount
@@ -323,22 +323,22 @@ table! {
323
323
pub ChainedClassRecord { // ChainedClassSequenceRule
324
324
backward_glyph_count ( u16 ) , // backtrackGlyphCount
325
325
326
- backward_class_ids ( Vec <u16 >) |this, tape| { // backtrackSequence
326
+ backward_indices ( Vec <u16 >) |this, tape| { // backtrackSequence
327
327
tape. take_given( this. backward_glyph_count as usize )
328
328
} ,
329
329
330
- input_glyph_count ( u16 ) , // inputGlyphCount
330
+ glyph_count ( u16 ) , // inputGlyphCount
331
331
332
- input_class_ids ( Vec <u16 >) |this, tape| { // inputSequence
333
- if this. input_glyph_count == 0 {
332
+ indices ( Vec <u16 >) |this, tape| { // inputSequence
333
+ if this. glyph_count == 0 {
334
334
raise!( "found a malformed chained class context record" ) ;
335
335
}
336
- tape. take_given( this. input_glyph_count as usize - 1 )
336
+ tape. take_given( this. glyph_count as usize - 1 )
337
337
} ,
338
338
339
339
forward_glyph_count ( u16 ) , // lookaheadGlyphCount
340
340
341
- forward_class_ids ( Vec <u16 >) |this, tape| { // lookaheadSequence
341
+ forward_indices ( Vec <u16 >) |this, tape| { // lookaheadSequence
342
342
tape. take_given( this. forward_glyph_count as usize )
343
343
} ,
344
344
0 commit comments