-
Notifications
You must be signed in to change notification settings - Fork 49
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
Implement font attributes #299
Conversation
There are two opportunities for an error when reading a font: once for the font family, and again for the cached_face_id, so I think this error should tell which! It could well be a unit variant, but I'm erring on the side of specificity
I don't imagine there's any variation in the way Fonts are serialized. One test is probably enough. I won't stop you from adding more, but I don't think it's necessary. I'll give the code a once over in the morning but at a glance, please add this to the changelog 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason for us to bother with a String
when we can just use &'static str
but otherwise looks good to me.
Co-authored-by: Micah <dekkonot@rocketmail.com>
Co-authored-by: Micah <dekkonot@rocketmail.com>
Co-authored-by: Micah <dekkonot@rocketmail.com>
Commited from my iPhone |
Merged from my Android |
Closes #290.
Should the folder-with-font-attribute test files have more & varied font attributes added? I sort of want to add more, but I think the spec is correct, and I'm not sure how important it is to test against more values here