Code

3 patches, #3 depends on #1 as EPS uses AFM for stringwidth too.