Rewrote the entire error hierarchy to be specific to the operation at hand instead of having one big error type for everything.
Glyph names, layer names, group names and kerning entries now use Name instead of String to enforce UFO restrictions on what can be contained in a name.
The DataRequest builder API now passes back Self instead of a mutable reference, for writing "one-liners".
All public items should now have documentation text attached to them.
The norad::util module is private for now.
Minor API changes in NonNegativeIntegerOrFloat, IntegerOrFloat is just an f64 now.
Font.data_request is private for now.
Load and save methods apart from those in Font and Glyph are now private.
Font::get_glyph(), Layer::get_glyph(), Layer::remove_glyph() and Layer::iter now return &Glyph without the Arc<> wrapper unless the druid feature is enabled; some methods got a _raw counterpart for explicitly getting behind the Arc<> wrapper then.
Image::file_name() is now a getter for the underlying private file_name field.
On saving, font parts other than glyphs are validated up-front, to reduce the chance of erroring out half-way through saving.
Color's fields are now private.
Layer renaming is more strict now and catches things forbidden by the spec.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps norad from 0.6.0 to 0.8.0.
Release notes
Sourced from norad's releases.
... (truncated)
Commits
1ef6f20
Add custom Codepoints type, wrapping IndexSetb67c9f4
Use IndexSet instead of Vec for codepoints417e4ac
Fix rustdoc complaints8a464f4
Make user_name_to_file_name public, tweak signatureb98c0e5
Make layer_filter closure non-static9b08bdb
Update layer request API to be closure basedc3177ae
Finer grained control over layer loading9a2bfbc
Update version to 0.8.0, bump kurboc546de8
Merge pull request #272 from rsheeter/designspace0568370
Remove pointless Path::newDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)