locked
I want to display the both Hindi and English font in single text object RRS feed

  • Question

  • User-1232439801 posted

    hi...

    my problem is i want to display both Hindi and English font together in a single text object...
    the data is retrieved from Database in detail section...

    is there any font which supports both Hindi and English font for single text object... 

    i have the text like this (हिमाचल प्रदेश Himachal Pradesh) .. if i select the font as Mangal then

    the english letter will be displayed as boxes ... and if i select the font as arial the hindi letter 

    will will be displayed as boxes ... 

    The whole text is a single string... 

    help me...

    Monday, June 6, 2011 1:56 AM

Answers

  • User-1694870838 posted

    Hi Vinayak,

    I'm sorry for reply later!

    maybe that's a better idea,could you give us details about how to select the font as Mangal? can it be change with codes?

       C# code: 

               string str = "Hindi(हिन्दी)good";
                foreach (char a in str)
                {
                    if (a == '(')
                     Font = Mangal   ;

                     if (a == '(')
                     Font = english   ;

                   TextBox1.Text+=a;

                }

     If I misunderstand you please feel free let me know!

    Bset Regards,

    Damon

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 10, 2011 5:39 AM

All replies

  • User-1696077569 posted

    Have you tried Unicode font?

    Monday, June 6, 2011 2:17 AM
  • User-1232439801 posted

    ya.. i have tried that .. but no success

    :-(

    Monday, June 6, 2011 2:25 AM
  • User-1694870838 posted

    Hi,

    I have done a test , it can display Hindi and English font in single text object correctly.

    like this follow :

     

    I think the issue about your computer environment set.you can change you set follow:

    1. Open Control Panel and click on the Regional and Language Options icon.

    2. In the first tab, Regional Options, select Hindi (India)

    Best Regards,

    Damon

    Thursday, June 9, 2011 2:06 AM
  • User-1232439801 posted
    hi...Damon thanks for the reply..
    the above didn't worked for me.. :-(
    but i have one idea
    suppose consider a word "Hindi(हिन्दी)good" consider that as a full word
    now what we can do is we can apply Arial Font for Whole word based on condition it should change the font..
    like if(text = '(' )
    then font = mangal upto this ')'
    else Arial ...
    but how to write formula .. i dont know .. help me
    Thursday, June 9, 2011 5:59 AM
  • User-1694870838 posted

    Hi Vinayak,

    I'm sorry for reply later!

    maybe that's a better idea,could you give us details about how to select the font as Mangal? can it be change with codes?

       C# code: 

               string str = "Hindi(हिन्दी)good";
                foreach (char a in str)
                {
                    if (a == '(')
                     Font = Mangal   ;

                     if (a == '(')
                     Font = english   ;

                   TextBox1.Text+=a;

                }

     If I misunderstand you please feel free let me know!

    Bset Regards,

    Damon

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 10, 2011 5:39 AM