From 06190b895aea65182d6a26bdc43f6e68c65a1b9b Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Fri, 7 Mar 2025 14:35:08 -0500 Subject: [PATCH] gidNNN -> gidDDD .. and clarify that the number is decimal --- skrifa/src/{glyph_names.rs => glyph_name.rs} | 6 +++--- skrifa/src/lib.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename skrifa/src/{glyph_names.rs => glyph_name.rs} (97%) diff --git a/skrifa/src/glyph_names.rs b/skrifa/src/glyph_name.rs similarity index 97% rename from skrifa/src/glyph_names.rs rename to skrifa/src/glyph_name.rs index a953c71d4..957ddabf6 100644 --- a/skrifa/src/glyph_names.rs +++ b/skrifa/src/glyph_name.rs @@ -20,7 +20,7 @@ const MAX_GLYPH_NAME_LEN: usize = 63; /// /// This sources glyph names from the `post` and `CFF` tables in that order. /// If glyph names are not available in either, then they are synthesized -/// as `gidNNN` where `NNN` is the glyph identifier. Use the +/// as `gidDDD` where `DDD` is the glyph identifier in decimal. Use the /// [`source`](Self::source) to determine which source was chosen. #[derive(Clone)] pub struct GlyphNames<'a> { @@ -111,8 +111,8 @@ pub enum GlyphNameSource { Post, /// Glyph names are sourced from the `CFF` table. Cff, - /// Glyph names are synthesized in the format `gidNNN` where `NNN` is - /// the glyph identifier. + /// Glyph names are synthesized in the format `gidDDD` where `DDD` is + /// the glyph identifier in decimal. Synthesized, } diff --git a/skrifa/src/lib.rs b/skrifa/src/lib.rs index 73487092b..f156619ae 100644 --- a/skrifa/src/lib.rs +++ b/skrifa/src/lib.rs @@ -40,11 +40,11 @@ pub mod setting; pub mod string; mod collections; -mod glyph_names; +mod glyph_name; mod provider; mod variation; -pub use glyph_names::{GlyphName, GlyphNameSource, GlyphNames}; +pub use glyph_name::{GlyphName, GlyphNameSource, GlyphNames}; #[doc(inline)] pub use outline::{OutlineGlyph, OutlineGlyphCollection}; pub use variation::{Axis, AxisCollection, NamedInstance, NamedInstanceCollection};