You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a custom font using a TrueType Collection (.ttc) with a URL address. I've followed the example in the documentation but I get an error:
ERROR
Error: Uncaught (in promise): TypeError: url.toLowerCase is not a function
TypeError: url.toLowerCase is not a function
It looks like the library is treating the font type definition as a string when the examples show that an array of strings should be specified to identify the .ttc file and font name.
Specifying a .ttf file via the URL protocol method works fine, it's only with the usage of a .ttc file and the specification of the font name that the issue seems to occur.
I'm trying to add a custom font using a TrueType Collection (.ttc) with a URL address. I've followed the example in the documentation but I get an error:
It looks like the library is treating the font type definition as a string when the examples show that an array of strings should be specified to identify the .ttc file and font name.
Specifying a .ttf file via the URL protocol method works fine, it's only with the usage of a .ttc file and the specification of the font name that the issue seems to occur.
I've reproduced the issue on StackBlitz: https://stackblitz.com/edit/angular-pdfmake-example-5prbnt?file=src/app/app.component.ts
The text was updated successfully, but these errors were encountered: