support pixel and millimeter text unit prefs