Calculates the width in pixels of a string using a given Xft font