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

Getting a stacktrace when trying to use the font Berkeley Mono #246

Open
drhayes opened this issue Apr 11, 2024 · 0 comments
Open

Getting a stacktrace when trying to use the font Berkeley Mono #246

drhayes opened this issue Apr 11, 2024 · 0 comments

Comments

@drhayes
Copy link

drhayes commented Apr 11, 2024

Here's what I'm trying to do:

❯ echo "console.log('hello!');" | RUST_BACKTRACE=1 silicon -o main.png -l javascript -f 'Berkeley Mono=16'
[error] Error occurs when load font `Berkeley Mono`: Font error: parse error
thread 'main' panicked at /home/drhayes/.cargo/registry/src/index.crates.io-6f17d22bba15001f/silicon-0.5.2/src/font.rs:214:14:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:144:5
   3: silicon::formatter::ImageFormatter::format
   4: silicon::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I can run with a more verbose backtrace if that would help.

If I use a different font like Ubuntu Mono or JetBrains Mono it works just fine.

"Berkeley Mono" appears when I run silicon --list-fonts.

Here is where I got the font: https://berkeleygraphics.com/typefaces/berkeley-mono/

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