I'm creating a website where the main headings are displayed in a fixed width font (the designer's choice, not mine). But for headings containing a comma, this can look quite odd - there is a huge amount of space left after a comma.
So I was wondering how to reduce this space, to make things look slightly more natural.
A simple solution is for my PHP backend to replace al occurrences of a comma followed by a space with a comma followed by a thin space (this solution works). But I'm little reluctant - it seems to be fixing the problem in the wrong place. e.g. what happens if the font is later changed to something that is not fixed width, but the new developer doesn't know to hunt into the backend to remove the thin space being inserted?
So what's the 'proper' way to do this?