Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font not rendering special characters #1771

Open
AleksaVuic opened this issue Apr 6, 2022 · 2 comments
Open

Font not rendering special characters #1771

AleksaVuic opened this issue Apr 6, 2022 · 2 comments
Labels

Comments

@AleksaVuic
Copy link

AleksaVuic commented Apr 6, 2022

So in my app i have multiple language options (English/Chinese/Japanese/etc). Im using "lato", sans-serif font fallback for Chinese/Japanese and some other language special characters and it renders fine.

import LatoRegular from '@/.../.../Lato-Regular.ttf'

Font.register({
  family: 'LatoRegular',
  format: 'truetype',
  src: LatoRegular
})

So lato doesn't work for all the characters. Since font fallback is not possible in this library (correct me if I'm wrong?), is there a font that supports all, latin special characters, Chinese and Japanese at the same time? I already read the posts here and 'Zboom' font (or whats it called?) doesn't fit for me, it looks ugly when rendering latin chars.

Any workaround for this would be appreciated. Thank you

@AleksaVuic AleksaVuic changed the title Lato font not acting in pdf as its acting in the app Font not rendering special characters Apr 6, 2022
@anhcnt197vn
Copy link

I have the same issue!

@helio-durable
Copy link

Same bug here trying to render a star ★

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants