Skip to content

Commit 2f82fbd

Browse files
zeonzipwezm
authored andcommitted
RawGlyph field clarification
Made RawGlpyh use GlyphId for glyph indexing
1 parent 2c12525 commit 2f82fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gsub.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use crate::layout::{
2323
};
2424
use crate::scripts::{self, ScriptType};
2525
use crate::tables::variable_fonts::Tuple;
26-
use crate::tag;
2726
use crate::unicode::VariationSelector;
27+
use crate::{tag, GlyphId};
2828

2929
const SUBST_RECURSION_LIMIT: usize = 2;
3030

@@ -123,7 +123,7 @@ impl Ligature {
123123
#[derive(Clone, Debug)]
124124
pub struct RawGlyph<T> {
125125
pub unicodes: TinyVec<[char; 1]>,
126-
pub glyph_index: u16,
126+
pub glyph_index: GlyphId,
127127
pub liga_component_pos: u16,
128128
pub glyph_origin: GlyphOrigin,
129129
pub flags: RawGlyphFlags,

0 commit comments

Comments
 (0)