private void resizeText() {        
        infoText.setFont(Fonts.opensansLight(size * 0.07));
        infoText.setTranslateX((size - infoText.getLayoutBounds().getWidth()) * 0.5);
        infoText.setTranslateY(size * 0.34);

        value.setFont(Fonts.opensansBold(size * 0.32));
        value.setTranslateX((size - value.getLayoutBounds().getWidth()) * 0.5);
        value.setTranslateY(size * 0.5);
    }