| <<<Back 1 day (to 2022/08/05) | Fwd 1 day (to 2022/08/07) >>> | 20220806 |
artifexirc-bot | <seggie> Hello, I know I can query a font bbox to get spacing, but how can i query kerning pairs? I guess i can just do (av) stringwidth for every pair, then subtract (a) and (v) but this feels like not the intended solution? | 18:55.20 |
| <seggie> Hmm, actually that doesn't seem to work. | 18:57.35 |
| <seggie> GS>(av) stringwidth pop (a) stringwidth pop sub (v) stringwidth pop sub cvi == | 18:57.37 |
| <seggie> 0 | 18:57.40 |
| <seggie> maybe i need to do 0 0 moveto, then query currentpoint | 18:58.21 |
| <seggie> hmm that no work either, maybe i have kerning disabled somehow?! | 19:00.28 |
| <seggie> GS>0 0 moveto (AV) show currentpoint pop (A) stringwidth pop sub (V) stringwidth pop sub round cvi == | 19:00.28 |
| <seggie> 0 | 19:00.32 |
| <seggie> i have the right font and scaling, i dunno | 19:00.56 |
| <seggie> i see, show doesn't care about kerning, for that you need kshow but postscript doesn't get the pairs, you have to provide them (!?!) | 19:34.00 |
| <seggie> there must be a convenience routine that already does this? | 19:34.21 |
| <<<Back 1 day (to 2022/08/05) | Forward 1 day (to 2022/08/07)>>> | |