How To DrawString with Character Spacing?

If I write “Hello World”, can I specify the spacing between character? And also, is there any equivalent function

to System.Drawing.Graphics.MeasureString ?

Hi Frankie,


Thank you for contacting Aspose Support.

I am afraid, Aspose.Imaging APIs do not have means to specify spacing between the characters, and we may not be able to provide such feature as well. You have to code your own custom routines to write each character separately while drawing strings on the image canvas with Graphics class. We are sorry for your inconvenience.

Regarding the Graphics.MeasureString method, we have logged a feature request in our feature tracking system to check the feasibility of your request, and to bring it on our road map of Aspose.Imaging API. The ticket Id for your future reference is IMAGING-34042.

Thanks. MeasureString is an existing method from Microsoft library. This greatly affect ASPOSE if it had less feature or method. Do you have estimiate time this will be available?

Hi Frankie,


Thank you for writing back.

Unfortunately, the ticket attached to this thread is currently pending for analysis and is in the queue with other tasks, therefore we cannot share an estimated release schedule for the required feature at this moment. As soon as we have analyzed the request, we will assign it a “Fix Version” internally, then we can share what version of Aspose.Imaging for .NET will implement the required methods.

Regarding the MeasureString method, we know there are several overloads provided by MS library, so we will try to provide them all with Aspose.Imaging API as well.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.