From 90cd178117ffb3b1b7aeddb3f8fdaabb11bbf509 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 8 Feb 2023 10:01:47 +0100 Subject: [PATCH] Document GlyphInfo::id --- crates/epaint/src/text/font.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/epaint/src/text/font.rs b/crates/epaint/src/text/font.rs index e97687f0572..442c8ade2f0 100644 --- a/crates/epaint/src/text/font.rs +++ b/crates/epaint/src/text/font.rs @@ -33,6 +33,10 @@ impl UvRect { #[derive(Clone, Copy, Debug, PartialEq)] 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, /// Unit: points.