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

Implement font attributes #299

Merged
merged 12 commits into from
Jun 28, 2023
Merged

Conversation

kennethloeffler
Copy link
Member

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

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
@Dekkonot
Copy link
Member

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 😉

Copy link
Member

@Dekkonot Dekkonot left a 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.

rbx_types/src/attributes/error.rs Outdated Show resolved Hide resolved
rbx_types/src/attributes/reader.rs Outdated Show resolved Hide resolved
rbx_types/src/attributes/reader.rs Outdated Show resolved Hide resolved
@kennethloeffler
Copy link
Member Author

Commited from my iPhone

@Dekkonot Dekkonot merged commit bc1f154 into rojo-rbx:master Jun 28, 2023
@Dekkonot
Copy link
Member

Merged from my Android

@kennethloeffler kennethloeffler deleted the font-attributes branch June 28, 2023 03:05
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.

Attributes need Font support
2 participants