Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
87d1801
[Sparse Strip]: Text API (outlines only)
taj-p Mar 31, 2025
db226ef
Don't expose Skrifa public API + use norm coords slice
taj-p Mar 31, 2025
897c7a0
Hardcode NonZero fill text rendering
taj-p Mar 31, 2025
6ccfb54
Add disclaimer to layout_glyphs
taj-p Mar 31, 2025
a57bed9
Disable hinting for rotated, skewed text
taj-p Apr 1, 2025
c458e8c
Prevent allocating a new path for each glyph
taj-p Apr 1, 2025
b25c507
Set no features on bytemuck
taj-p Apr 1, 2025
f4742e6
clippy
taj-p Apr 1, 2025
f0af18e
Add test for scaled glyphs
taj-p Apr 1, 2025
18bf5cd
Improve doco
taj-p Apr 1, 2025
5c4200f
Use unscaled outlines
taj-p Apr 1, 2025
dcd7800
.
taj-p Apr 1, 2025
7fdd1af
Parley example
taj-p Apr 1, 2025
c64fd57
.
taj-p Apr 1, 2025
3ea9728
more clippy
taj-p Apr 1, 2025
31e2d85
Minor
taj-p Apr 1, 2025
6e661a4
Make GlypRun members private
taj-p Apr 2, 2025
8284434
Only use hinting when scale is 1.0
taj-p Apr 2, 2025
3d6735d
Use &str
taj-p Apr 2, 2025
72ac145
Move bytemuck::cast_slice
taj-p Apr 2, 2025
9ab7341
Update Parley deps
taj-p Apr 2, 2025
01174dc
Merge branch 'tajp/sparseStrips/textApi' of github.com:taj-p/vello in…
taj-p Apr 2, 2025
d4d5658
Remove roboto
taj-p Apr 2, 2025
249abcf
Merge remote-tracking branch 'upstream/main' into tajp/sparseStrips/t…
taj-p Apr 2, 2025
dffe263
Use Wasm for text example
taj-p Apr 2, 2025
d410f7f
.
taj-p Apr 2, 2025
f126fb2
Merge branch 'tajp/sparseStrips/textApi' into tajp/sparseStrips/scale…
taj-p Apr 2, 2025
778078a
.
taj-p Apr 2, 2025
38961c2
.
taj-p Apr 2, 2025
03d3d23
.
taj-p Apr 2, 2025
4ad41e9
.
taj-p Apr 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 114 additions & 6 deletions Cargo.lock

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

18 changes: 18 additions & 0 deletions sparse_strips/vello_api/src/glyph.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2025 the Vello Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Types for glyphs.

/// Positioned glyph.
#[derive(Copy, Clone, Default, Debug)]
pub struct Glyph {
/// The font-specific identifier for this glyph.
///
/// This ID is specific to the font being used and corresponds to the
/// glyph index within that font. It is *not* a Unicode code point.
pub id: u32,
/// X-offset in run, relative to transform.
pub x: f32,
/// Y-offset in run, relative to transform.
pub y: f32,
}
1 change: 1 addition & 0 deletions sparse_strips/vello_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ pub use peniko;
pub use peniko::color;
pub use peniko::kurbo;
pub mod execute;
pub mod glyph;
pub mod paint;
2 changes: 2 additions & 0 deletions sparse_strips/vello_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ publish = false
vello_api = { workspace = true, default-features = true }
# for pico_svg
roxmltree = "0.20.0"
bytemuck = { workspace = true, features = [] }
skrifa = { workspace = true }

[features]
simd = ["vello_api/simd"]
Expand Down
Loading
Loading