OG languages problem
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
Why does 'नमस्ते' look different in the picture?
Also Bengali Laguage have this type of problem
Input - সূর্যমুখীর শহরের
Output - সূরযমুখীর শহররে
website link - https://vercel.com/guides/using-different-languages
Code -
import { ImageResponse } from 'next/og';
// App router includes @vercel/og.
// No need to install it.
export async function GET() {
return new ImageResponse(
(
<div
style={{
fontSize: 40,
color: 'black',
background: 'white',
width: '100%',
height: '100%',
padding: '50px 200px',
textAlign: 'center',
justifyContent: 'center',
alignItems: 'center',
}}
>
👋 Hello 你好 नमस्ते こんにちは สวัสดีค่ะ 안녕 добрий день Hallá
</div>
),
{
width: 1200,
height: 630,
},
);
}
Also Bengali Laguage have this type of problem
Input - সূর্যমুখীর শহরের
Output - সূরযমুখীর শহররে
website link - https://vercel.com/guides/using-different-languages
Code -
import { ImageResponse } from 'next/og';
// App router includes @vercel/og.
// No need to install it.
export async function GET() {
return new ImageResponse(
(
<div
style={{
fontSize: 40,
color: 'black',
background: 'white',
width: '100%',
height: '100%',
padding: '50px 200px',
textAlign: 'center',
justifyContent: 'center',
alignItems: 'center',
}}
>
👋 Hello 你好 नमस्ते こんにちは สวัสดีค่ะ 안녕 добрий день Hallá
</div>
),
{
width: 1200,
height: 630,
},
);
}