Is there a way to detect that all characters are displayed properly with the current font? In some environments and fonts certain characters are replaced with a square symbol.
I’d like to automatically verify that all characters used in the GUI are supported by the current font.
I found a possible solution using the QFontMetrics class. Here is a an example function to query whether all characters are available in the current text of a QLabel:
Of course displaying to the user which character is missing would be good, but of course that has to be done with a different font 🙂