getFontSize function

double getFontSize(
  1. double px
)

This method is used to set text font size according to Viewport

Implementation

double getFontSize(double px) {
  return getSize(px);
}