Document GlyphInfo::id

This commit is contained in:
Emil Ernerfeldt 2023-02-08 10:01:47 +01:00
parent 7397be3401
commit 90cd178117

View file

@ -33,6 +33,10 @@ impl UvRect {
#[derive(Clone, Copy, Debug, PartialEq)] #[derive(Clone, Copy, Debug, PartialEq)]
pub struct GlyphInfo { pub struct GlyphInfo {
/// Used for pair-kerning.
///
/// Doesn't need to be unique.
/// Use `ab_glyph::GlyphId(0)` if you just want to have an id, and don't care.
pub(crate) id: ab_glyph::GlyphId, pub(crate) id: ab_glyph::GlyphId,
/// Unit: points. /// Unit: points.