I use MagickNet library.
I need to draw arabic and russian text. Programming language is C#. I enter text to TextBox control (text stores as unicode) and then try to draw it, but it draws just '????'. If I enter russian leters in TextBox then I recieve wrong letters.
A try to set property myTextImage.TextEncoding = "UTF-8" and "UTF-16", but nothing changes.
Tell me please how to draw right russian and arabic letters.
Thank you
Unicode in .NET
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Unicode in .NET
You also have to use a font that has the Unicode characters you want.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Unicode in .NET
anthony wrote: You also have to use a font that has the Unicode characters you want.
I use Arial font which contains arabic chars. How can I display text using MagickNet. I can do it from command line in bellow method: save unicode text in file in UTF-8 encoding and then read text from this file.
In my .NET application I have unicode string with arabic chars. How can I display this text?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Unicode in .NET
Sorry beyond what I have given, I have no knowledge of MagicNet or .NET.
Hopfully someone else can help.
Hopfully someone else can help.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Unicode in .NET
anthony wrote: Sorry beyond what I have given, I have no knowledge of MagicNet or .NET.
Hopfully someone else can help.
10x for your help, now I combine some modification do via command line and others via MagickNet, but in future I want do all with using just .Net library. Unfortunately there is few documentation and examples about MagickNet function.