TextLine textLine = null;
double minPadding = fm.getHeight();
try {
for (int i = 0; i < tags.size(); i++) {
Tag tag = tags.get(i);
String value = tag.getValue();
Rectangle2D rect = fm.getStringBounds(value, g);
// create new textline if not exists
if (i == 0) {
textLine = new TextLine();
textLines.add(textLine);