Closed arashsheyda closed 1 year ago
Hey @arashsheyda, thanks for the issue.
This isn't really a bug, more a documentation issue. By default the Inter font is used to render the OG Image, you'll need need to include a font that has the characters you want to support.
export default defineNuxtConfig({
ogImage: {
fonts: [
// will load this font from Google fonts
'Noto+Sans+Hebrew:400'
]
}
})
I'll update the docs to make this clearer
How did you manage to handle RTL? Fonts will make the characters appear correctly. Is there any way to handle the direction for Arabic and Persian lang?
@jesspinklet I handled it like this: https://github.com/persiansda/sabbath-school/blob/nuxt/components/app/OgImage/Base.vue
@jesspinklet I handled it like this: https://github.com/persiansda/sabbath-school/blob/nuxt/components/app/OgImage/Base.vue
Thanks for replying back. Using Satroi renderer, the direction attribute and direction css property is not working for RTL regardless of checking i18n direction, text-align is working but it's just the alignment, the word orders aren't correct. Am I missing something here?
I found this issue that might be related.
@jesspinklet oh I didn't know that
Describe the bug
first of all, thanks for your great work
the bug appears when characters are like persian or hebrew (rtl languages probably) , it seems it can't encode them. here are some outputs: hebrew, persian, english
I think it might do something with nuxt server components
thank you again
Reproduction
No response
System / Nuxt Info