Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: variant or associated item not found in FontTransform #1

Open
kongchenglc opened this issue Jul 26, 2022 · 6 comments
Open

Comments

@kongchenglc
Copy link
Contributor

image

@JuliDi
Copy link

JuliDi commented Aug 4, 2022

Something wrong with the git version that is linked. You can use the one from crates.io, though. In your Cargo.toml file you can change the dependencies to

[dependencies]
plotters = "0.3.2"
wasm-bindgen = "0.2.62"
wee_alloc = "0.4.5"
web-sys = { version = "0.3.39", features = ["HtmlCanvasElement"] }
plotters-canvas = "0.3.0"

which fixed the issue for me.

@aaraney
Copy link

aaraney commented Aug 14, 2022

I had the same issue and @JuliDi's solution worked for me too.

@Lwfrancisco
Copy link

+1 for @JuliDi 's solution.

@spookyvision
Copy link

another option is to use this open PR instead:

[dependencies.plotters-canvas]
git = "https://github.com/AE1020/plotters-canvas"
branch = "revert-rotateangle"

@jaredmcqueen
Copy link

@38 I know you are looking for participants - I can help get the canvas stuff sorted out so that it'll at least compile again natively without these workarounds

@Wafol
Copy link

Wafol commented Sep 7, 2023

+1 for @JuliDi 's solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants