How can I know the width of a string for a specific fontsize, fonttype etc?