The check for whether to use the simple or complex text path inside underline-skipping code might not match the check in text-rendering code. Investigate if this is the case.