Skip to content

Commit

Permalink
[fontique] use windows-rs for dwrite backend (#85)
Browse files Browse the repository at this point in the history
Swaps out winapi, wio and dwrote for windows-core and windows.

---------

Co-authored-by: Aaron Muir Hamilton <aaron@correspondwith.me>
  • Loading branch information
dfrg and xorgy authored Sep 30, 2024
1 parent 5cd5ea5 commit 41821d4
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 168 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ This release has an [MSRV] of 1.70.
#### Fontique

- Removed unsafe code from fontconfig cache ([#78] by [@waywardmonkeys])
- Switched to `windows-rs` for `dwrite` backend ([#85] by [@dfrg])

### Fixed

Expand Down Expand Up @@ -69,6 +70,7 @@ This release has an [MSRV] of 1.70.
[#78]: https://github.com/linebender/parley/pull/78
[#71]: https://github.com/linebender/parley/pull/71
[#72]: https://github.com/linebender/parley/pull/72
[#85]: https://github.com/linebender/parley/pull/85

[Unreleased]: https://github.com/linebender/parley/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/linebender/parley/releases/tag/v0.1.0
102 changes: 68 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions fontique/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ icu_locid = "1.5.0"
hashbrown = "0.14.5"

[target.'cfg(target_family="windows")'.dependencies]
dwrote = "0.11.0"
winapi = { version = "0.3.9", features = ["dwrite", "dwrite_1", "dwrite_3", "winnt", "unknwnbase", "libloaderapi", "winnls"] }
wio = "0.2.2"
windows = { version = "0.58.0", features = ["implement", "Win32_Graphics_DirectWrite"] }
windows-core = { version = "0.58" }

[target.'cfg(target_vendor="apple")'.dependencies]
core-text = "20.1.0"
Expand Down
Loading

0 comments on commit 41821d4

Please sign in to comment.