-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FontFamily with different fonts #1502
Comments
I think you have to register the fonts before any PDF related component is rendered. So in the file that creates the |
Thanks for your response. The registered font was declared before the tag Document. My example is only a part of the code to explain the issue. In fact, it works with 1 font as this example:
I don't know if it could be possible to add two fonts. |
Describe the bug
I have a pdf which could have more than 1 languages at the same time. For example Japanese and Arabic but the language files are separated. I am receiving the following error:
Error: Font family not registered: NotoSansArabic, NotoSansJap. Please register it calling Font.register() method
To Reproduce
I have registered the fonts and I add them in the property fontFamily style
Expected behavior
I would like to add two fonts in fontFamily property because I have 2 different language files
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: