Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Strange Font Problem in Edit Control [SOLVED]

Strange Font Problem in Edit Control [SOLVED]

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
18 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V vishalgpt

    SP 24 wrote:

    1. Is Aparajita is Hindi font and

    Yes

    SP 24 wrote:

    1. Is सरकारी is unicode string or ascii string?

    Unicode String

    SP 24 wrote:

    If it is unicode than you must choose the font as Mangal and than check.

    Checked with Mangal. The result is same. Actually the string contains both english and hindi. X| :confused:

    Regards, Vishal

    S Offline
    S Offline
    ShilpiP
    wrote on last edited by
    #7

    I am facing this problem with Bengali and Oriya only but not in Hindi. Please check that you have Mangal font installed in your system? It should be in SystemDrive:\Windows\Fonts folder. One more thing that I do is copy the font of mangal in Windows 7 or Vista and installed it in your pc. Might be your problem is resolved.

    "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

    T 1 Reply Last reply
    0
    • S ShilpiP

      I am facing this problem with Bengali and Oriya only but not in Hindi. Please check that you have Mangal font installed in your system? It should be in SystemDrive:\Windows\Fonts folder. One more thing that I do is copy the font of mangal in Windows 7 or Vista and installed it in your pc. Might be your problem is resolved.

      "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #8

      can you check you aprajita font in font folder, what is the maximum size it's support?

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

      S V 2 Replies Last reply
      0
      • T ThatsAlok

        can you check you aprajita font in font folder, what is the maximum size it's support?

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        S Offline
        S Offline
        ShilpiP
        wrote on last edited by
        #9

        Hi Alok ji, Please ask this question to Vishal :). BTW the string is Unicode than there is no need to set the Hindi font. He can set Mangal instead.

        "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

        T 1 Reply Last reply
        0
        • S ShilpiP

          Hi Alok ji, Please ask this question to Vishal :). BTW the string is Unicode than there is no need to set the Hindi font. He can set Mangal instead.

          "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #10

          SP 24 wrote:

          Please ask this question to Vishal :) .

          yeap.... thanks!

          SP 24 wrote:

          there is no need to set the Hindi font. He can set Mangal instead.

          some times it's project requirement to use some particular fonts and never depend on UNICODE based on size and shape they take :-)

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          S 1 Reply Last reply
          0
          • T ThatsAlok

            can you check you aprajita font in font folder, what is the maximum size it's support?

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            V Offline
            V Offline
            vishalgpt
            wrote on last edited by
            #11

            Aprajita Font maximum size is 72. I had tried Mangal Font also, but no success.

            Regards, Vishal

            S 1 Reply Last reply
            0
            • T ThatsAlok

              SP 24 wrote:

              Please ask this question to Vishal :) .

              yeap.... thanks!

              SP 24 wrote:

              there is no need to set the Hindi font. He can set Mangal instead.

              some times it's project requirement to use some particular fonts and never depend on UNICODE based on size and shape they take :-)

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
              Never mind - my own stupidity is the source of every "problem" - Mixture

              cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

              S Offline
              S Offline
              ShilpiP
              wrote on last edited by
              #12

              ThatsAlok yeap.... thanks!

              :-D

              ThatsAlok some times it's project requirement to use some particular fonts and never depend on UNICODE based on size and shape they take :)

              Yae but for English and Unicode font, I don't think so that it is being used. For an example if I have English string might be "abcd" and I set some Hindi font. If any shape is mapped in that Hindi font than it might be a hindi value without meaning. So for English font we have to take care of it. Example : In some Hindi font "a is mapped with shape क" and in some other font may be "a is mapped with shape अ".

              "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

              1 Reply Last reply
              0
              • V vishalgpt

                Aprajita Font maximum size is 72. I had tried Mangal Font also, but no success.

                Regards, Vishal

                S Offline
                S Offline
                ShilpiP
                wrote on last edited by
                #13

                Did you check the font in fonts folder ??

                "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

                V 1 Reply Last reply
                0
                • S ShilpiP

                  Did you check the font in fonts folder ??

                  "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

                  V Offline
                  V Offline
                  vishalgpt
                  wrote on last edited by
                  #14

                  SP 24 wrote:

                  Did you check the font in fonts folder ??

                  Yes checked. Same problem with bengali font. Oriya not checked.

                  Regards, Vishal

                  S 1 Reply Last reply
                  0
                  • V vishalgpt

                    SP 24 wrote:

                    Did you check the font in fonts folder ??

                    Yes checked. Same problem with bengali font. Oriya not checked.

                    Regards, Vishal

                    S Offline
                    S Offline
                    ShilpiP
                    wrote on last edited by
                    #15

                    vishalgpt wrote:

                    Yes checked.

                    It means that your font is in font folder. Right. Now open Winword and write the path that you want to show in edit control and select all and set the font Mangal and check it is same as displayed in your edit control. If yes than try to check with different size. Or copy the Mangal font from vista and windows 7 machine. New version of Mangal font looking nice.May be your problem is resolved by installing it in your system.

                    "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

                    V 1 Reply Last reply
                    0
                    • S ShilpiP

                      vishalgpt wrote:

                      Yes checked.

                      It means that your font is in font folder. Right. Now open Winword and write the path that you want to show in edit control and select all and set the font Mangal and check it is same as displayed in your edit control. If yes than try to check with different size. Or copy the Mangal font from vista and windows 7 machine. New version of Mangal font looking nice.May be your problem is resolved by installing it in your system.

                      "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

                      V Offline
                      V Offline
                      vishalgpt
                      wrote on last edited by
                      #16

                      SP 24 wrote:

                      It means that your font is in font folder. Right.

                      YES. It is ok with winword. But not with Edit Control. I am on Windows 7.

                      Regards, Vishal

                      S 1 Reply Last reply
                      0
                      • V vishalgpt

                        SP 24 wrote:

                        It means that your font is in font folder. Right.

                        YES. It is ok with winword. But not with Edit Control. I am on Windows 7.

                        Regards, Vishal

                        S Offline
                        S Offline
                        ShilpiP
                        wrote on last edited by
                        #17

                        Please share your code where you set the font in Edit control.

                        "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."

                        1 Reply Last reply
                        0
                        • V vishalgpt

                          Hi, I am facing a strange font problem Font Name : Aparajita Language : Hindi Platform : C++ Win32 (NO MFC) I created a dialog with a simple edit control. When i enter the path displayed below in the edit control, Everything is displayed in correct size, But only the hindi text is displayed very small. Just unreadable. Path Entered: C:\Hello World\सरकारी\Files I have tested this with Chinese Font. It is ok. How to over come this problem. Please help.:confused: Thanx 4 everyone, problem solved.

                          Regards, Vishal

                          modified on Wednesday, June 8, 2011 12:11 AM

                          R Offline
                          R Offline
                          Rajesh R Subramanian
                          wrote on last edited by
                          #18

                          Can't say a thing without seeing your code.

                          "Real men drive manual transmission" - Rajesh.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups