Skip to content

Commit 91c63f5

Browse files
tychedeliacatilac
andauthored
Text support (#160)
Co-authored-by: Moon Davé <moon@softmoon.world>
1 parent 029a000 commit 91c63f5

21 files changed

Lines changed: 3244 additions & 22 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
using: 'composite'
1010
steps:
1111
- name: Install system dependencies
12-
run: sudo apt-get update && sudo apt-get install -y g++ cmake pkg-config libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libwayland-bin libxkbcommon-dev wayland-protocols libdecor-0-dev libegl1-mesa-dev libwayland-egl1-mesa
12+
run: sudo apt-get update && sudo apt-get install -y g++ cmake pkg-config libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libwayland-bin libxkbcommon-dev wayland-protocols libdecor-0-dev libegl1-mesa-dev libwayland-egl1-mesa libfontconfig1-dev
1313
shell: bash
1414

1515
- name: Build and install GLFW 3.4

Cargo.lock

Lines changed: 126 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,14 @@ path = "examples/particles_emit_gpu.rs"
257257
name = "particles_stress"
258258
path = "examples/particles_stress.rs"
259259

260+
[[example]]
261+
name = "text"
262+
path = "examples/text.rs"
263+
264+
[[example]]
265+
name = "text_3d"
266+
path = "examples/text_3d.rs"
267+
260268
[profile.wasm-release]
261269
inherits = "release"
262270
opt-level = "z"

crates/processing_core/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ pub enum ProcessingError {
5858
PipelineNotReady(u32),
5959
#[error("Particles not found")]
6060
ParticlesNotFound,
61+
#[error("Font not found")]
62+
FontNotFound,
63+
#[error("Font load error: {0}")]
64+
FontLoadError(String),
6165
}

0 commit comments

Comments
 (0)