Skip to content

Commit

Permalink
fix wasmbuild with font spec
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 29, 2023
1 parent e47f08f commit fe6e55d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ bump-brew:
# TODO: Move to bin path
release-x11:
RUSTFLAGS='-C link-arg=-s' cargo build --release --no-default-features --features=x11
WINIT_UNIX_BACKEND=x11 target/release/rio
target/release/rio
release-wayland:
RUSTFLAGS='-C link-arg=-s' cargo build --release --no-default-features --features=wayland
WINIT_UNIX_BACKEND=wayland target/release/rio
target/release/rio

# Debian
# cargo install cargo-deb
Expand Down
2 changes: 1 addition & 1 deletion sugarloaf/src/font/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Font {
}

#[cfg(target_arch = "wasm32")]
pub fn new(_font_name: Fonts) -> Font {
pub fn new(_font_spec: SugarloafFonts) -> Font {
let font_arc_unicode = FontArc::try_from_slice(FONT_UNICODE_FALLBACK).unwrap();
let font_arc_symbol = FontArc::try_from_slice(FONT_DEJAVU_SANS).unwrap();

Expand Down

0 comments on commit fe6e55d

Please sign in to comment.