Custom fonts?
ninjamar opened this issue · 3 comments
Is there any support for custom fonts?
I know I can pass arguments to ImageResponse
, but loadGoogleFont
isn't exposed. For me, loadGoogleFont
has an additional overhead, so I wrote a base64 encoded version of the font to a JavaScript file to be imported.
I know I can pass arguments to
ImageResponse
, butloadGoogleFont
isn't exposed. For me,loadGoogleFont
has an additional overhead, so I wrote a base64 encoded version of the font to a JavaScript file to be imported.
I want to support Chinese fonts, can you tell me how to do that?
I know I can pass arguments to
ImageResponse
, butloadGoogleFont
isn't exposed. For me,loadGoogleFont
has an additional overhead, so I wrote a base64 encoded version of the font to a JavaScript file to be imported.I want to support Chinese fonts, can you tell me how to do that?
Here's how I did it