Skip to content

Commit

Permalink
Document GlyphInfo::id
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 8, 2023
1 parent 7397be3 commit 90cd178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/epaint/src/text/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 90cd178

Please sign in to comment.