You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing a similar issue where the line-height is different, but it seems to happen more on some fonts than on others. I'm not sure if this is related but it sounds like it could since it is related to the spacing of letters. I notice greater issues with irregular fonts.
While creating the comparison images I also noticed that ligatures don't seem to be rendered correctly (see last example "Henny Penny" which uses ligatures on some repeating letters "ee" "ff" "oo"...)
Bug report
Description / Observed Behavior
If the image generated by
@vercel/og
contains texts, those texts will not have the kerning correctly applied when using a custom font.Expected Behavior
Kerning is applied.
Reproduction
Unable to demonstrate with https://og-playground.vercel.app, so I created a Next.js repo instead:
HTML: https://vercel-og-kerning.vercel.app/
OG: https://vercel-og-kerning.vercel.app/api/og
Repo: https://github.com/mwskwong/vercel-og-kerning
The text was updated successfully, but these errors were encountered: