Skip to content

Create gradients from .glyphs; fields not yet correct#1735

Merged
rsheeter merged 2 commits into
mainfrom
colr1
Nov 12, 2025
Merged

Create gradients from .glyphs; fields not yet correct#1735
rsheeter merged 2 commits into
mainfrom
colr1

Conversation

@rsheeter

@rsheeter rsheeter commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@rsheeter rsheeter force-pushed the colr1 branch 14 times, most recently from 722a591 to 78ca5dd Compare November 12, 2025 18:24
@rsheeter rsheeter changed the title [WIP] Build slightly more of COLR Create gradients from .glyphs; fields not yet correct Nov 12, 2025
Comment thread fontir/src/ir.rs

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub struct PaintLinearGradient {
pub color_line: Vec<ColorStop>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at some point we'll need a separate ColorLine struct, since a color line is not just a vector of color stops but may also define extend modes (pad, repeat, reflect)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I'd like to punt that to future.

@rsheeter rsheeter added this pull request to the merge queue Nov 12, 2025
Merged via the queue into main with commit f0f641e Nov 12, 2025
12 checks passed
@rsheeter rsheeter deleted the colr1 branch November 12, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants