1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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)]
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.