code: private void resizeStaticText() {
          double maxWidth = size * 0.455;
          double fontSize = size * 0.08082707;
          titleText.setFont(Fonts.latoBold(fontSize));
          if (titleText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(titleText, maxWidth, fontSize); }
          titleText.relocate((size - titleText.getLayoutBounds().getWidth()) * 0.5, size * 0.22180451);
      }
docs: ******************** Resizing ******************************************