Skip to content

Commit

Permalink
gidNNN -> gidDDD
Browse files Browse the repository at this point in the history
.. and clarify that the number is decimal
  • Loading branch information
dfrg committed Mar 7, 2025
1 parent 4b61a94 commit 06190b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions skrifa/src/glyph_names.rs → skrifa/src/glyph_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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,
}

Expand Down
4 changes: 2 additions & 2 deletions skrifa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 06190b8

Please sign in to comment.