servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.61k stars 204 forks source link

Using pathfinder text outside of project workspace #445

Open pum-purum-pum-pum opened 3 years ago

pum-purum-pum-pum commented 3 years ago

Currently if one specifies pathfinder with pathfinder text in the dependencies (as path or git outside of the project workspace) it will fail because pathfinder text depends on font-kit. But font-kit depends on pathfinder_geometry and pathfinder_simd from crates.io. (also if one vendor font-kit and specify path dependency on pathfinder_geometry FreeType will not compile).

Is it possible to use pathfinder text outside of the workspace?

colbyn commented 3 years ago

Hey @pum-purum-pum-pum should be possible. Just add the following to your Cargo.toml file:

[patch.crates-io]
pathfinder_geometry = {git = "https://github.com/servo/pathfinder/"}
pathfinder_simd = {git = "https://github.com/servo/pathfinder/"}