-
March 8th, 2010, 04:52 PM
#1
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
-
March 9th, 2010, 10:00 AM
#2
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 ¿
-
March 9th, 2010, 01:15 PM
#3
Re: Font linking for a unicode string
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
-
March 9th, 2010, 01:28 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|