Created attachment 184032 [details] Test document Text layout involving Narrow No-Break Space (U+202F), e.g. a combining mark placed over it so that it can standalone, is broken and the marks are mispositioned, and I expect kerning or any other text layout feature to suffer from the same issue.
Created attachment 184033 [details] Screenhost showing current rendering This shot shows the current rendering with the problematic words highlighted.
Created attachment 184034 [details] Screenhost showing expected rendering This seems to be a regression from bug 67669, reverting the two commits there gives the expected rendering. This is because highlighted formatting characters create different Writer “portions” so the NNBSP is laid out separate from the rest of the text, which causes broken layout. This affects NBSP and other highlighted characters as well. I this the commits for bug 67669 should be reverted for now, since this is breaking text layout unnecessarily and we should refrain from adding more such shading until we figure a way to do this without breaking text layout.
FWIW. fixing bug 61444 should allow for fixing the root issue here as well, but it does not seem to be an easy fix.
@Khaled: nice catch! I suggest to revert the fix for tdf#67669 to avoid of the bigger problem, the lost layout.
Khaled Hosny committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f6935ce552ed625281104a10695de977a131b477 tdf#152413: Revert "tdf#67669 - Make narrow no-break space visible by drawing It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Khaled Hosny committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/c1553cf97e54baecb98c805b19e2913d776a33a7 tdf#152413: Revert "tdf#67669 - Make narrow no-break space visible by drawing It will be available in 7.4.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/754b6ef15b8a93f73db4b293ee853668768c91e6 tdf#152413: sw_layoutwriter: Add unittest It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.