Skip to content

CueStyler: Fix outline rendering of TimedTextCue elements#9224

Open
softworkz wants to merge 1 commit intomicrosoft:winui3/release/1.5-stablefrom
softworkz:winui3/release/1.5-stable_fixoutlines
Open

CueStyler: Fix outline rendering of TimedTextCue elements#9224
softworkz wants to merge 1 commit intomicrosoft:winui3/release/1.5-stablefrom
softworkz:winui3/release/1.5-stable_fixoutlines

Conversation

@softworkz
Copy link
Contributor

The current method of simulating text outlines is wrong in the way how the visuals are offset in diagonal directions.

Also, the number of visuals for simulating the effect is insufficient for creating an acceptable appearance.

I will follow up with some comparisons.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 11, 2024
@softworkz
Copy link
Contributor Author

Comparison 1: Large Outline Values

Current Implementation

image

This PR but with 8 Iterations

image

This PR but with 16 Iterations

image

This PR (using 32 Iterations)

image

@softworkz
Copy link
Contributor Author

Comparison 2: Smaller Outlines, Bold and Rounded Font

Current Implementation

image

This PR but with 8 Iterations

image

This PR but with 16 Iterations

image

This PR (using 32 Iterations)

image

@softworkz
Copy link
Contributor Author

softworkz commented Jan 11, 2024

Comparison 2b: Same as 2 but scaled to 200%

Current Implementation

image

This PR but with 8 Iterations

image

This PR but with 16 Iterations

image

This PR (using 32 Iterations)

image

@softworkz
Copy link
Contributor Author

Further improvement would be to:

  • Remove the alpha component from the outline color before setting it on the elements
  • Put all outline elements into a common container
  • Set the alpha value of the outline color as opacity on that common container
  • This will also allow to implement TimedTextStyle.OutlineRadius (which is currently ignored) by applying a blur effect to that common container

@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Feb 23, 2024
@softworkz
Copy link
Contributor Author

@bpulliam - What does the removal of the "needs-triage" label mean? What is the outcome of your triage?

@MartyIX
Copy link
Contributor

MartyIX commented Apr 14, 2024

@bpulliam Could this PR be reviewed please?

@DmitriyKomin DmitriyKomin self-assigned this Apr 15, 2024
@softworkz
Copy link
Contributor Author

softworkz commented Dec 15, 2025

Thanks for the approval. Please let me know when I need to do anything regarding CLA:

image

IIRC, I have agreed already, but not sure..

@riverar
Copy link
Contributor

riverar commented Dec 17, 2025

@softworkz If that bot says you haven't done it, it's probably not done. (Or perhaps the CLA got tweaked and needs re-signing?)

Oh actually, seems like it's just broken and probably needs a new (empty or otherwise) commit in this PR.

@softworkz softworkz force-pushed the winui3/release/1.5-stable_fixoutlines branch from 7b02acd to b6e16a4 Compare December 17, 2025 18:12
@softworkz
Copy link
Contributor Author

@riverar

Oh actually, seems like it's just broken

Yup, that's what I mean.t

probably needs a new (empty or otherwise) commit in this PR

Forrce-pushed a message change of the commit in both PRs and now it's gone.
Thanks.

@softworkz softworkz force-pushed the winui3/release/1.5-stable_fixoutlines branch from b6e16a4 to efd3c07 Compare December 17, 2025 18:19
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.

6 participants