Skip to content

upgrading from 2.0.2 to 3.0.0 results in loss of rendering of emojis #47

@rbozan

Description

@rbozan

Using 2.0.2 emojis render properly, but 3.0.0 does not render emojis anymore and renders them as square blocks.

Can be as simple as:

<div tw="flex flex-col w-full h-full items-center justify-center bg-purple-50">
😳
</div>
	return await ImageResponse(htmlTemplate, {
		width: 1200,
		height: 630,
		fonts: [
			{
				name: 'Lexend',
				data: await (
					await fetch(
						'https://github.com/googlefonts/lexend/raw/main/fonts/lexend/ttf/Lexend-Bold.ttf'
					)
				).arrayBuffer(),
				weight: 700
			},

			{
				name: 'Lexend',
				data: await (
					await fetch(
						'https://github.com/googlefonts/lexend/raw/main/fonts/lexend/ttf/Lexend-Medium.ttf'
					)
				).arrayBuffer(),
				weight: 500
			}
		]
	});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions