using em instead of pixel size for font seemed to fix the bug. investigating the issue further.