Reputation: 2935
Does anyone know of a solution for writing text to an image using an OTF? I know that GDI+ does not support OTF and that WPF does. I can load the font as a label in WPF, but still do not know how I can write this over an image, such as a watermark would do, and save that image.
I need this in an ASP.net page, so I won't actually be able to use WPF, but I figure that might be a start in building a class my page can import.
I appreciate all help!
Upvotes: 1
Views: 1076
Reputation: 40736
It seems that ImageMagick supports OTF fonts. They have a tool to convert fonts to images which you could then use in a subsequent image draw operation.
Since there are wrappers for .NET, you could use them within your ASP.NET application.
Upvotes: 1