xftwidth Calculate the width in pixels of a string using a given Xft font: xftwidth "DejaVu Sans:size=10" "test" Calculate the maximum possible font size that will fit a given pixel width: xftwidth "DejaVu Sans" "(╯°□°)╯︵ ┻━┻)" 500