code: private void resizeTitleText() {
          double maxWidth = 0.56667 * size;
          double fontSize = 0.08 * size;
          titleText.setFont(Fonts.robotoLight(fontSize));
          if (titleText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(titleText, maxWidth, fontSize); }
          titleText.relocate((size - titleText.getLayoutBounds().getWidth()) * 0.5, size * 0.225);
      }
docs: ******************** Resizing ******************************************