Converts the initial font size to pixels based on the device type.
Example:
double result = sizeConfig.fontSize(initialSize);
double fontSize(double initialSize) => px(initialSize);