jimbarrett27 / wrdcld

A predictable, interpretable wordcloud library
GNU General Public License v3.0
2 stars 0 forks source link

Support padding/margin between words #15

Open naslundx opened 1 month ago

naslundx commented 1 month ago

There is a padding value to make_word_cloud but it is not used. This should be used when filling text in rectangles.

jimbarrett27 commented 1 month ago

Do we use one fixed value in pixels? Or relative to the font size?

naslundx commented 1 month ago

Interesting question! I think fixed value makes more sense... otherwise I'm wondering if we end up with either a) effectively 0 margin around the small words or b) too much padding for large words meaning no space in between the letters

jimbarrett27 commented 1 month ago

I had imagined that the padding would basically work by not putting the word within some number of pixels of the edge of the available rectangle, which wouldn't be an issue for the larger words, but you're probably right for smaller words getting squeezed together. Let's try fixed and see how it looks