ruipin / fvtt-better-text-drawings

Module for Foundry VTT that adds more options to text drawings, allowing multi-line text as well as configurable stroke width, color, and text alignment.
GNU General Public License v3.0
3 stars 3 forks source link

Text wrap based on width of container #5

Open nhjjr opened 3 years ago

nhjjr commented 3 years ago

Is it possible to wrap the text based on the width of the drawing box? Currently it just stretches the box, requiring manual breaks to maintain a specific width, which is quite tricky especially if you later change font size or style.

ruipin commented 3 years ago

Unfortunately, this would require a full re-write of the way PIXI/Foundry draws text.

This module adds easy-to-implement behaviour that is missing from Foundry, because Atropos is busy with other higher-priority things. A complete rewrite of the text drawing mechanism is out-of-scope - I just don't have the time nor patience for it.

You'll have better luck requesting this as a Foundry feature.

I'll leave the issue open in case anyone wants to contribute this feature, but I wouldn't hold my breath.

nhjjr commented 3 years ago

Thanks for the prompt reply. While it's unfortunate the current drawing framework won't allow it, it's understandable that it's too much work for a relatively small feature.