Skip to content

Remove num_glyphs, deprecate Effect type tokens and highlighting functions#133

Merged
dhardy merged 3 commits intomasterfrom
push-zpypnvkvysop
Feb 21, 2026
Merged

Remove num_glyphs, deprecate Effect type tokens and highlighting functions#133
dhardy merged 3 commits intomasterfrom
push-zpypnvkvysop

Conversation

@dhardy
Copy link
Copy Markdown
Contributor

@dhardy dhardy commented Feb 21, 2026

num_glyphs was originally added for "API completeness"'s sake, but has never been of use to Kas (and probably isn't useful elsewhere either) hence is removed.

Since #132 allowed effect tokens to be defined in downstream crates and Kas has reason to use types which can't trivially be moved up to kas-text, Effect and EffectFlags are no longer used. Markdown requires these specific types, hence kas-core now has a copy of Markdown. These are thus deprecated.

Highlighting text now uses background colours defined by effect tokens in Kas, hence the text-highlighting functions are no longer used. The result is also slightly more accurate in RTL text. The new method isn't bug free, but I don't expect to go back to these methods, hence they are deprecated.

@dhardy dhardy merged commit 3d0b337 into master Feb 21, 2026
5 checks passed
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