Skip to content

Commit

Permalink
fix: change font to no ligatures
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeya committed Nov 9, 2024
1 parent 213e4be commit 29f0a87
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web-2/src/app/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { ImageResponse } from 'next/og';

export const runtime = 'edge';

export const GET = async (req: Request) => {
const url = new URL(req.url);

const page = url.searchParams.get('page');

const fontRegular = fetch(
new URL('../../assets/fonts/JetBrainsMono-Regular.ttf', import.meta.url)
new URL('../../assets/fonts/JetBrainsMonoNL-Regular.ttf', import.meta.url)
).then((res) => res.arrayBuffer());

const fontBold = fetch(
new URL('../../assets/fonts/JetBrainsMono-Bold.ttf', import.meta.url)
new URL('../../assets/fonts/JetBrainsMonoNL-Bold.ttf', import.meta.url)
).then((res) => res.arrayBuffer());

return new ImageResponse(
Expand Down
Binary file removed apps/web-2/src/assets/fonts/JetBrainsMono-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 29f0a87

Please sign in to comment.