I'm rendering a text svg using handwriting style google fonts. Assume that I must use these fonts.
For this example, lets use Princess Sofia
Setup
- rendering text svg to png via cairo svg in python
- text svg is being prepared in the browser
The Problem:
When creating a PNG out of the text svg with this font, some part of it is being cut off. The cut off part matches the areas that are not higlighted in the screenshot below:

Rendering result for A (cut off in the screenshot):
Rendering result for P (NOT cut off in the screenshot):
Question
Is there a way to work around this using CSS or JS?
What won't work
- "Kerning, stretching, font variants, word and letter spacing options, glyph orientations, baseline shifts and many other properties are not supported" by Cairo SVG

