Skip to content

Text bounds#18

Merged
TotalKrill merged 4 commits intoTotalKrill:cosmic-textfrom
tigregalis:ct-text-bounds
Jun 24, 2024
Merged

Text bounds#18
TotalKrill merged 4 commits intoTotalKrill:cosmic-textfrom
tigregalis:ct-text-bounds

Conversation

@tigregalis
Copy link
Copy Markdown
Collaborator

Fixes examples/text2d crash, and provides more logical API for specifying text bounds TextBounds including constructors.

Removed uses of f32::MAX and f32::INFINITY to represent "unbounded", replacing these with "None" (unbounded). This uses the API that landed in pop-os/cosmic-text#70 instead. This prevents adding to overflow leading to a panic.

Repurposed Text2dBounds as TextBounds, and used it in the pipeline instead of Vec2.

@tigregalis tigregalis changed the title Ct text bounds Text bounds Jun 24, 2024
@TotalKrill TotalKrill merged commit f0e18a3 into TotalKrill:cosmic-text Jun 24, 2024
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