How to fix CJK font rendering and CSS gaps when using Satori for OG images
A developer building a Korean saju reading service encountered three key failures while generating share cards and Open Graph images using Satori via Next.js's ImageResponse. The first issue was missing hanja glyphs, solved by passing an ordered font fallback array — a Korean handwriting face for Hangul and Latin, followed by a hanja-specific font — mirroring CSS unicode-range logic. The second problem was Satori's lack of support for mask-image, filter, and backdrop-filter, requiring all styling to be written inline in JSX rather than pulled from an external stylesheet. To work around this, the developer created a small inline token mirror of the site's light-theme CSS variables and committed to light-only card output. A third practical constraint noted was that Satori requires TTF or OTF font files, not woff2, and font paths must be hardcoded literals so Vercel's file tracing can correctly bundle assets at build time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in