[ArtisticTextShape] Merge text ranges with same style
Differential Revision: https://phabricator.kde.org/D14916
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>