Skip to content

Comments

Simplify FormattableText trait; remove FormattableTextDyn#126

Merged
dhardy merged 7 commits intomasterfrom
push-nptwqosppqqp
Feb 15, 2026
Merged

Simplify FormattableText trait; remove FormattableTextDyn#126
dhardy merged 7 commits intomasterfrom
push-nptwqosppqqp

Conversation

@dhardy
Copy link
Contributor

@dhardy dhardy commented Feb 13, 2026

Remove trait FormattableTextDyn and struct OwningVecIter: we have no use for them.

Remove associated type FormattableText::FontTokenIter, using impl Trait instead (RPITIT was stabilised in 1.75.0).

Add parameter font: FontSelector to fn FormattableText::font_tokens (this allows font effects to be relative to whatever baseline selector the text may use).

Add requirements on font/effect token indices, with debug-mode tests.

Remove Debug bound on trait FormattableText.

@dhardy dhardy changed the title Push nptwqosppqqp Simplify FormattableText trait; remove FormattableTextDyn Feb 13, 2026
@dhardy dhardy merged commit b572543 into master Feb 15, 2026
5 checks passed
@dhardy dhardy deleted the push-nptwqosppqqp branch February 16, 2026 08:48
dhardy added a commit to kas-gui/kas that referenced this pull request Feb 20, 2026
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.

1 participant