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

Allow creating fonts with Arc<dyn AsRef[u8] + Send + Sync> #57

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

mrobinson
Copy link
Member

This has advantages over a simple Arc<Vec<u8>> because it can avoid
data copies. A common case that this happens is when Servo creates
fonts from shared memory. In addition, this maintains full compatability
with Arc<Vec<u8>> because it fulfills the trait.

Finally, this bumps the version so that the changes can be deployed.

This has advantages over a simple `Arc<Vec<u8>>` because it can avoid
data copies. A common case that this happens is when Servo creates
fonts from shared memory. In addition, this maintains full compatability
with `Arc<Vec<u8>>` because it fulfills the trait.

Finally, this bumps the version so that the changes can be deployed.

Signed-off-by: Martin Robinson <[email protected]>
@jdm jdm added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit 8276985 Oct 8, 2024
2 checks passed
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