Font linking for a unicode string
Hi All
I am using a pdf generating library. It requires me to provide a font whenever I am printing a string in the pdf document. The problem is that the string that will be printed is the user input from a textbox and I may have to select different font for different language input.
I have found some information about font linking here
http://msdn.microsoft.com/en-us/goglobal/bb688134.aspx
but I am not sure if there is a C# way of doing this. Does anyone know how?
thanks
Re: Font linking for a unicode string
If you provide a means for the user to type in, why not provide a means of selecting a particular font - iow, FontDialog ¿
Re: Font linking for a unicode string
Quote:
Originally Posted by
HanneSThEGreaT
If you provide a means for the user to type in, why not provide a means of selecting a particular font - iow, FontDialog ¿
Thanks for your reply
This is the new functionality I have to provide base on an old interface. They are not interested on adding a new control for selecting font. Pluse, text boxes would automatically use font mapping. So, if the user type Chinese font, textBox.Font may be "Microsoft Sans Serif" but the font being displayed may be some chinese font (whatever it is on the register map "Microsoft Sans Serif" to)
Because of those reasons, that would not solve my problem
Re: Font linking for a unicode string
What you want is the MaskedTextBox.
Some links to get you started:
http://www.microsoft.com/middleeast/...AndArabic.aspx
http://msdn.microsoft.com/en-us/libr...edtextbox.aspx
The arabic link, although written for making a TextBox work in Arabic, has specific instructions on how to use the MaskedTextBox control for a specific language/culture setting.