servo / dwrote-rs

DirectWrite bindings and wrapper for Rust
11 stars 13 forks source link

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

Closed mrobinson closed 1 month ago

mrobinson commented 1 month ago

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.