Skip to content
Discussion options

You must be logged in to vote

The problem in your case is that your temporary file doesn't contain a .ttf or .otf extension so ImageMagick thinks it's a really weird font name and tries to load that font. There is probably a slightly different check in the read settings that allows these kind of font names. To solve this for your situation you can do this instead:

string tempFontPath = $@"{Path.GetTempPath()}\{Guid.NewGuid}.{resourceName}";

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@baswarmerdam
Comment options

@dlemstra
Comment options

Answer selected by baswarmerdam
@baswarmerdam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants