-
Notifications
You must be signed in to change notification settings - Fork 269
[Sparse Strip]: Text API (outlines only) #883
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
87d1801
[Sparse Strip]: Text API (outlines only)
taj-p db226ef
Don't expose Skrifa public API + use norm coords slice
taj-p 897c7a0
Hardcode NonZero fill text rendering
taj-p 6ccfb54
Add disclaimer to layout_glyphs
taj-p a57bed9
Disable hinting for rotated, skewed text
taj-p c458e8c
Prevent allocating a new path for each glyph
taj-p b25c507
Set no features on bytemuck
taj-p f4742e6
clippy
taj-p f0af18e
Add test for scaled glyphs
taj-p 18bf5cd
Improve doco
taj-p 7fdd1af
Parley example
taj-p c64fd57
.
taj-p 3ea9728
more clippy
taj-p 31e2d85
Minor
taj-p 6e661a4
Make GlypRun members private
taj-p 8284434
Only use hinting when scale is 1.0
taj-p 3d6735d
Use &str
taj-p 72ac145
Move bytemuck::cast_slice
taj-p 9ab7341
Update Parley deps
taj-p 01174dc
Merge branch 'tajp/sparseStrips/textApi' of github.com:taj-p/vello in…
taj-p d4d5658
Remove roboto
taj-p 249abcf
Merge remote-tracking branch 'upstream/main' into tajp/sparseStrips/t…
taj-p dffe263
Use Wasm for text example
taj-p d410f7f
.
taj-p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | ||
| } | ||
|
taj-p marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ pub use peniko; | |
| pub use peniko::color; | ||
| pub use peniko::kurbo; | ||
| pub mod execute; | ||
| pub mod glyph; | ||
| pub mod paint; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.