All you need to do is have this for your HTML: var title = document.query Selector('h1'), text = title.inner HTML, svg Template = document.query Selector('svg'), char Style = svg Template.query Selector('#text'); svg Template.style.display = 'block'; var space = 0; for (var i = 0; i How about something like this for shorter text?It could even works for longer characters if you do something loop and repeating over the characters with Java Script, anyway the result is something like this: Thank you for your interest in this question.
UPDATE: Since many have asked why I would ever want to style half of a character, this is why.
You might want to edit your answer to not suggest using
As @Niels Bom mentioned, in the past it could break your site when it was updated.
Also, try copying and pasting text from the web page into a text editor or word processor — not [email protected] As In Beer: Generally, any potential solution to a problem like this will never be perfect because these things are heavily dependent on factors like glyph sizes, which can vary in a myriad of ways.
Zooming just adds another level of complication to what is already not easy to achieve using Java Script and, as yet, impossible with pure CSS.