diff --git a/site/pages/concepts/images-intents.mdx b/site/pages/concepts/images-intents.mdx index 16bfea30..80caa04f 100644 --- a/site/pages/concepts/images-intents.mdx +++ b/site/pages/concepts/images-intents.mdx @@ -129,6 +129,139 @@ export const app = new Frog({ [Read more on Image Options.](https://vercel.com/docs/functions/og-image-generation/og-image-api#fonts-parameters-within-options) +### Fonts + +Below is an example of using `fonts` property in `imageOptions`. + +:::code-group + +```tsx twoslash [Google fonts] +/** @jsxImportSource frog/jsx */ +// ---cut--- +import { Frog } from 'frog' + +export const app = new Frog({ + imageOptions: { + /* Other default options */ + fonts: [ + { + name: 'Open Sans', + weight: 400, + source: 'google', + }, + { + name: 'Open Sans', + weight: 700, + source: 'google', + }, + { + name: 'Madimi One', + source: 'google', + }, + ], + }, +}) + +app.frame('/', (c) => { + return c.res({ + image: ( +