forked from vvuk/dwrote-rs
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creating fonts with
Arc<dyn AsRef[u8] + Send + Sync>
(#57)
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]>
- Loading branch information
Showing
4 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "dwrote" | |
description = "Lightweight binding to DirectWrite." | ||
repository = "https://github.com/servo/dwrote-rs" | ||
license = "MPL-2.0" | ||
version = "0.11.1" | ||
version = "0.11.2" | ||
authors = ["The Servo Project Developers", "Vladimir Vukicevic <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters