add adjustFontSizes to adjust font size list according screen dpi

code copied from @NuPogodi's comment in #202.
This patch should fix #202.