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

examples seem broken #570

Open
Parth opened this issue Jun 23, 2024 · 0 comments
Open

examples seem broken #570

Parth opened this issue Jun 23, 2024 · 0 comments

Comments

@Parth
Copy link

Parth commented Jun 23, 2024

the readme references cargo run --example test-picture 0 which returns:

error: no example target named `test-picture`.
Available example targets:
    mondrian
    basic-svg

attempting to run mondrian returns:

error: couldn't read piet/src/samples/../../snapshots/resources/Anaheim-Regular.ttf: No such file or directory (os error 2)
  --> piet/src/samples/picture_13.rs:19:28
   |
19 |       let _ = text.load_font(include_bytes!(
   |  ____________________________^
20 | |         "../../snapshots/resources/Anaheim-Regular.ttf"
21 | |     )); // SEEING AN ERROR? run `git submodule update --init`
   | |_____^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read piet/src/samples/../../snapshots/resources/Anaheim-Bold.ttf: No such file or directory (os error 2)
  --> piet/src/samples/picture_13.rs:23:20
   |
23 |         .load_font(include_bytes!("../../snapshots/resources/Anaheim-Bold.ttf"))
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read piet/src/samples/../../snapshots/resources/Inconsolata-variable.ttf: No such file or directory (os error 2)
  --> piet/src/samples/picture_14.rs:20:20
   |
20 |           .load_font(include_bytes!(
   |  ____________________^
21 | |             "../../snapshots/resources/Inconsolata-variable.ttf"
22 | |         ))
   | |_________^
   |
   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

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

1 participant