@Rhimlock I tried all of the fonts listed in the Malayalam Unicode support page, all of them displays it correctly within the browser/PC. To the best of my observation, this issue appears only when displayed using SFML.
I can give you an example of the issues:
1)
The first image shows how that particular set of character is supposed to be displayed(from Firefox). When stored programatically, it's stored in the order in which SFML displays it. But according to the rules of Malayalam (my native language), it's supposed to be displayed in the order Firefox/Ubuntu etc does, as follows:
Firfox(correct display)
SFML(incorrect, displayed without appropriate adjustments)
2)
Here, the three characters in the third image are supposed to be joined to be displayed as a single character as in the fourth image
These issues are repeated throughout the text. If these are some manual adjustments to be done per language, I think I can write something to pre-process the text before displaying it. But if there is some way SFML can already manage this, I won't have to re-invent the wheel. Please help.