set font for different platform.