godot font size code example
Example 1: latex text size
\Huge
\huge
\LARGE
\Large
\large
\normalsize
\small
\footnotesize
\scriptsize
\tiny
Example 2: godot dynamic font size
# when you need to resize a dynamic font for a label
var font = $my_label.get("custom_fonts/font")
font.size = 32
Example 3: css calc font size
/*Here a possible solution:*/
http://codepen.io/CrocoDillon/pen/fBJxu
p {
margin: 0;
font-size: calc(4vw + 4vh + 2vmin);
/* See:
* http://codepen.io/CrocoDillon/pen/jgmwt
* For some math behind this
*/
}
/*Font-size is calculated with available size using a function that is not
perfect, but may be adjusted to work well in some cases.*/