Workaround Qt's bug in calculating the bounding rect of the glyph in a glyph run
BUG:389528 (cherry picked from commit f401fa6e16950897daea029d885c0622a26f21fe)