rustybuzz/hb/
aat_layout_common.rs

1use crate::hb::aat_map::range_flags_t;
2use crate::hb::buffer::hb_buffer_t;
3use crate::hb::face::hb_font_t;
4use crate::hb::hb_mask_t;
5
6pub struct hb_aat_apply_context_t<'a> {
7    pub face: &'a hb_font_t<'a>,
8    pub buffer: &'a mut hb_buffer_t,
9    pub range_flags: Option<&'a mut [range_flags_t]>,
10    pub subtable_flags: hb_mask_t,
11}
12
13impl<'a> hb_aat_apply_context_t<'a> {
14    pub fn new(face: &'a hb_font_t<'a>, buffer: &'a mut hb_buffer_t) -> Self {
15        Self {
16            face,
17            buffer,
18            range_flags: None,
19            subtable_flags: 0,
20        }
21    }
22}