I’m pretty sure this used to work correctly. In 3418, the caret positions are not calculated with the italic angle taken into account.
Roman:
Italic: