servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using pathfinder text outside of project workspace

pum-purum-pum-pum opened this issue · comments

commented

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?

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/"}