Is possible to put two glyphs in any place in MetaPost and get kerning between it?
for example using Lato-Regular.ttf
'ab' in 1.7cm,2cm and get information kerning 'a' and 'b'
put 'a' in (1.7cm,2cm) and 'b' on right kerning +11pt.
If you create a textual picture like this:
picture pp; pp = "proof" infont "pplri8r";
it will be created with the origin of the text sitting at coordinates (0, 0); then you can get the dimensions like this
wd = xpart urcorner pp; ht = ypart urcorner pp; dp = ypart lrcorner pp;
You could use this idea to measure individual characters, but the only way I can think of to get the kerning information would be to measure the widths of
"b" separately, and then compare them to the width of
But you can only use
infont with font names in
psfonts.map, so you need to get familiar with what Lato is called there. On my system I see
"Lato-Reg-01" and so on, but the encodings are strange, so that the standard printable ASCII characters are not in their usual places.