measure formulas width using bbox and em->px conversion