Java graphics random text

前端 未结 2 554
忘了有多久
忘了有多久 2021-01-22 07:26

I\'m trying to draw random text with fontSize based on word frequency on the BufferedImage using the drawString(word, x, y) with random x,y values. Unf

2条回答
  •  心在旅途
    2021-01-22 08:16

    1. Get a Shape for the text as seen in this answer.
    2. Check if the shapes intersect as seen in this answer.

提交回复
热议问题