You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue pertains to the implementation of text outline support, introduced in PR #2582. The feature is functional and usable, but there are some rendering issues when working with certain font styles. Specifically:
Fonts with rounder shapes tend to render well even with larger outline thicknesses.
Fonts with sharp or thin features may display visible gaps between outline offsets as the outline thickness grows.
While the current implementation is a good starting point, further refinements are necessary to ensure consistent rendering across all font styles.
Steps to Reproduce
Use the master branch containing the changes from PR #2582.
Set up a TextBlock with a font of your choice.
Assign the font type as SpriteFontType.SDF.
Apply an OutlineThickness value greater than Text Size/10 example:**Text size 100 apply thickness to 20** to the TextBlock.
Test with both round and sharp/thin fonts.
Observe:
Round fonts render outlines correctly.
Sharp/thin fonts may exhibit visible gaps as the outline thickness increases.
Expected Behavior
Outlines for all fonts (round, sharp, or thin) should render smoothly without gaps or artifacts, regardless of the outline thickness.
Screenshots
2024-12-26.12-00-01.mp4
Additional Context
This implementation of text outline support is a functional addition to the renderer, introduced in PR #2582. While it works well for most cases, improvements are needed to address edge cases, especially for fonts with sharp or thin features.
Next Steps
Explore a method to dynamically adjust kernel sizes based on the font style to mitigate gaps.
Investigate shader-based solutions for smoother rendering.
Open to further testing and feedback to refine the feature.
This is a significant step forward for text rendering in Stride, and I will continue to work on improving this feature. Feedback and suggestion and contributions are welcome!
The text was updated successfully, but these errors were encountered:
Release Type
GitHub (master branch)
Version
Master branch
Platform(s)
Windows
Describe the Problem
This issue pertains to the implementation of text outline support, introduced in PR #2582. The feature is functional and usable, but there are some rendering issues when working with certain font styles. Specifically:
While the current implementation is a good starting point, further refinements are necessary to ensure consistent rendering across all font styles.
Steps to Reproduce
TextBlock
with a font of your choice.SpriteFontType.SDF
.OutlineThickness
value greater thanText Size/10 example:**Text size 100 apply thickness to 20**
to theTextBlock
.Expected Behavior
Outlines for all fonts (round, sharp, or thin) should render smoothly without gaps or artifacts, regardless of the outline thickness.
Screenshots
2024-12-26.12-00-01.mp4
Additional Context
This implementation of text outline support is a functional addition to the renderer, introduced in PR #2582. While it works well for most cases, improvements are needed to address edge cases, especially for fonts with sharp or thin features.
Next Steps
This is a significant step forward for text rendering in Stride, and I will continue to work on improving this feature. Feedback and suggestion and contributions are welcome!
The text was updated successfully, but these errors were encountered: