Font linking for a unicode string
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Font linking for a unicode string

  1. #1
    Join Date
    Apr 2006
    Posts
    82

    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

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,092

    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 ¿

  3. #3
    Join Date
    Apr 2006
    Posts
    82

    Re: Font linking for a unicode string

    Quote Originally Posted by HanneSThEGreaT View Post
    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

  4. #4
    Join Date
    Apr 2007
    Location
    Florida
    Posts
    403

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center