Skip to content

Fix rich text cloning and palette cache key - #413

Merged
JimBobSquarePants merged 2 commits into
mainfrom
js/font-palette
Aug 8, 2026
Merged

Fix rich text cloning and palette cache key#413
JimBobSquarePants merged 2 commits into
mainfrom
js/font-palette

Conversation

@JimBobSquarePants

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Adds missing RichTextRun fields to the RichTextOptions copy constructor, including feature tags, shaping metadata, color font settings, and font palette, so cloned options preserve run behavior correctly. It also includes FontPalette in glyph cache keys to prevent cache collisions between palette variants, and updates SixLabors.Fonts/ImageSharp package versions.

Adds missing RichTextRun fields to the RichTextOptions copy constructor, including feature tags, shaping metadata, color font settings, and font palette, so cloned options preserve run behavior correctly. It also includes FontPalette in glyph cache keys to prevent cache collisions between palette variants, and updates SixLabors.Fonts/ImageSharp package versions.
@JimBobSquarePants JimBobSquarePants added the bug Something isn't working label Aug 8, 2026
@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79%. Comparing base (b86b71f) to head (1a9c6e1).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #413   +/-   ##
=====================================
  Coverage     79%     79%           
=====================================
  Files        232     232           
  Lines      27340   27356   +16     
  Branches    3112    3113    +1     
=====================================
+ Hits       21859   21874   +15     
  Misses      4589    4589           
- Partials     892     893    +1     
Flag Coverage Δ
unittests 79% <100%> (+<1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JimBobSquarePants
JimBobSquarePants merged commit 9a57bc5 into main Aug 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant