Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make GlyphOrder methods work with &str #1245

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Make GlyphOrder methods work with &str #1245

merged 1 commit into from
Feb 6, 2025

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Feb 6, 2025

In tests I want to be able to write,

let gid = glyph_order.glyph_id("Aacute")
// instead of
let gid = glyph_order.glyph_id(&GlyphName::new("Aacute"));

So this just changes the argument of 'contains' and 'glyph_id' to use the same trait bounds as are used on the underlying collection.

JMM

In tests I want to be able to write,

   ```
   let gid = glyph_order.glyph_id("Aacute")
   // instead of
   let gid = glyph_order.glyph_id(&GlyphName::new("Aacute"));
   ```

So this just changes the argument of 'contains' and 'glyph_id' to use
the same trait bounds as are used on the underlying collection.
@dfrg dfrg added this pull request to the merge queue Feb 6, 2025
Merged via the queue into main with commit 4aa1baf Feb 6, 2025
11 checks passed
@dfrg dfrg deleted the glyph-order-get branch February 6, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants