It would be a good idea to have some fallback mode in the case that the bounding box of text can't be calculated.
The main reason for this is that getCharacterExtents is broken in qt-at-spi prior to 0.4.0 (which is not widely available at the moment). Therefore, if there's no fallback, this program will be completely unusable against Qt4 applications on most systems.
Fallback mode should also be used when the character extents are obviously wrong (e.g. overlapping). Unfortunately this seems common, e.g. in terminal emulators.
It would be a good idea to have some fallback mode in the case that the bounding box of text can't be calculated.
The main reason for this is that getCharacterExtents is broken in qt-at-spi prior to 0.4.0 (which is not widely available at the moment). Therefore, if there's no fallback, this program will be completely unusable against Qt4 applications on most systems.