double computeTitleFontSize(double width) { double size = width * 0.13; if (size > 15) { size = 15; } return size; }