Dynamically setting font size with respect to Screen Size

I am trying to change font size dynamically with Screen size of device. For example how to implement different font size for different device with different screen size

A common solution is to scale the whole GUI system, which can be done by manipulating the GUI matrix - this way not only the fonts keep their sizes relative to the screen, but also their positions are adjusted accordingly. Take a look at this question.

Don’t know if you read this but I hope that it’ll help (it worked for me before):