atizo / PyTagCloud

Create beautiful tag clouds as images or HTML
https://labs.atizo.com/software/#pytagcloud
BSD 3-Clause "New" or "Revised" License
397 stars 128 forks source link

Sprite overlap #1

Closed Hooked-xx closed 13 years ago

Hooked-xx commented 14 years ago

Taking the initial example from the unit tests and running:

create_tag_image(tags, os.path.join(home, 'cloud.png'), size=(300,400), background=(255,255,255,255), vertical=True, crop=True, fontname='fonts/Arial.ttf', fontzoom=3.2)

Gives significant overlap many of the sprites. Is it possible for the code to, at the very least, be aware this is happening and warn the user?

aeby commented 14 years ago

Yes, it is possible to warn the user. I will have a look at it and print a warning. There is also a problem with the _TAGPADDING as I scale the tag mask the wrong way.

aeby commented 13 years ago

Can you check the described behaviour again, please? Paul has fixed the buggy mask scaling.