This would be really cool! We would welcome a pull request and / or link to any downstream project working on this. In a similar vein, we've been considering adding the stroke width transform [0] as an optional preprocessing step.
[0] https://www.microsoft.com/en-us/research/publication/stroke-...