Skip to content

Trying to generate text in a blazor webassembly context, failing to load fonts #258

Answered by tocsoft
MaddoScientisto asked this question in Q&A
Discussion options

You must be logged in to vote

That error would generally imply its an unsupported font file version that has features our library doesn't know how to process.

If you could try using one of the fonts from our test suite (I would suggest OpenSans), That would help verify if its an issue with the version of the the version font your using or the library when ran from webassembly.

FYI Nothing in your code jumping out as fundamentally wrong... I do feel it prudent to warn you however that we can't promise you will find ImageSharp will be particularly performant when run in webassembly (.net is missing a lot of the optimisation we rely on when run in the browser)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MaddoScientisto
Comment options

@tocsoft
Comment options

Answer selected by MaddoScientisto
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants