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

Not for landing: Stress test of many variable font glyphs #746

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Remove hinting...
DJMcNab committed Jan 9, 2025
commit 508d508ad4c9084b0943a219434106af826dd251
53 changes: 50 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ clippy.duplicated_attributes = "allow"
masonry = { version = "0.2.0", path = "masonry" }
xilem_core = { version = "0.1.0", path = "xilem_core" }
tree_arena = { version = "0.1.0", path = "tree_arena" }
vello = { git = "https://github.com/linebender/vello", rev = "382e5d873d7c5e7fac7ffd246100768be4c38b86" }
vello = { git = "https://github.com/linebender/vello", rev = "5c0d094d1dc2b2ff31fd405a8845b51cef37aa88" }
wgpu = "23.0.1"
kurbo = "0.11.1"
parley = { git = "https://github.com/linebender/parley", rev = "16b62518d467487ee15cb230fdb28530d89a8cf6", features = [
5 changes: 3 additions & 2 deletions masonry/examples/massive_variable_fonts.rs
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ fn run(event_loop: EventLoopBuilder) -> Result<(), EventLoopError> {
flex = flex.with_child(label);
}

let window_attributes = Window::default_attributes().with_title("Simple image example");
let window_attributes = Window::default_attributes().with_title("Variable Fonts Stress Test");

masonry::event_loop_runner::run(event_loop, window_attributes, RootWidget::new(flex), Driver)
}
@@ -113,7 +113,8 @@ impl LoopingWeight {
.with_style(StyleProperty::FontWeight(FontWeight::new(200.)))
.with_style(StyleProperty::FontStack(parley::style::FontStack::Source(
"Hahmlet".into(),
))),
)))
.with_hint(false),
),
frame_index: 0,
}