1
1
use crate :: hb:: ot_layout_gpos_table:: ValueRecordExt ;
2
2
use crate :: hb:: ot_layout_gsubgpos:: OT :: hb_ot_apply_context_t;
3
3
use crate :: hb:: ot_layout_gsubgpos:: { skipping_iterator_t, Apply } ;
4
- use skrifa:: raw:: tables:: gpos:: { PairPosFormat1 , PairPosFormat2 , PairSet , PairValueRecord } ;
4
+ use skrifa:: raw:: tables:: gpos:: { PairPosFormat1 , PairPosFormat2 , PairValueRecord } ;
5
5
use skrifa:: raw:: FontData ;
6
6
7
7
use super :: Value ;
@@ -104,7 +104,7 @@ fn find_second_glyph<'a>(
104
104
while lo < hi {
105
105
let mid = ( lo + hi) / 2 ;
106
106
let record_offset = set_offset + 2 + mid * record_size;
107
- let glyph_id = base_data. read_at :: < skrifa:: GlyphId > ( record_offset) . ok ( ) ?;
107
+ let glyph_id = base_data. read_at :: < skrifa:: GlyphId16 > ( record_offset) . ok ( ) ?;
108
108
if glyph_id < second_glyph {
109
109
lo = mid + 1
110
110
} else if glyph_id > second_glyph {
@@ -119,7 +119,7 @@ fn find_second_glyph<'a>(
119
119
120
120
impl Apply for PairPosFormat2 < ' _ > {
121
121
fn apply ( & self , ctx : & mut hb_ot_apply_context_t ) -> Option < ( ) > {
122
- let first_glyph = ctx. buffer . cur ( 0 ) . as_skrifa_glyph ( ) ;
122
+ let first_glyph = ctx. buffer . cur ( 0 ) . as_skrifa_glyph16 ( ) ;
123
123
self . coverage ( ) . ok ( ) ?. get ( first_glyph) ?;
124
124
125
125
let mut iter = skipping_iterator_t:: new ( ctx, ctx. buffer . idx , false ) ;
@@ -132,7 +132,7 @@ impl Apply for PairPosFormat2<'_> {
132
132
}
133
133
134
134
let second_glyph_index = iter. index ( ) ;
135
- let second_glyph = ctx. buffer . info [ second_glyph_index] . as_skrifa_glyph ( ) ;
135
+ let second_glyph = ctx. buffer . info [ second_glyph_index] . as_skrifa_glyph16 ( ) ;
136
136
137
137
let finish = |ctx : & mut hb_ot_apply_context_t , iter_index : & mut usize , has_record2| {
138
138
if has_record2 {
0 commit comments