Skip to content

Conversation

@Cly1st
Copy link

@Cly1st Cly1st commented Oct 3, 2025

  • Added an option stroke_width in CorpusCfg to allow adding stroke width to text.
  • Included usage example in effect_layout_example.py and sample output image in effect_layout_image.

Lim Chhayly added 2 commits October 3, 2025 09:54
- Added an option `stroke_width` in CorpusCfg allow add stroke width to text.
- Removed print from draw_utils.py file.
@Cly1st
Copy link
Author

Cly1st commented Oct 3, 2025

I’m looking for a simple add a stroke to the text. However, it seems this PR might conflict with the existing TextBorder.
Please confirm if there’s a conflict? Thank you!

@scyyh11 scyyh11 self-assigned this Nov 4, 2025
@scyyh11
Copy link
Collaborator

scyyh11 commented Nov 4, 2025

Sorry for the late response.

Thank you for the contribution — adding stroke support will be useful for generating richer, more legible text renders. The purpose of such an implementation is to provide a visual transformation, which aligns more with the concept of an effect. CorpusCfg is generally intended for corpus-level defaults (like font, spacing, or language settings), while visual styling features such as stroke or outline fit better in the effect pipeline. What do you think about moving this logic into an effect for better composability and consistency? Open to discussion!

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.

2 participants