Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Hindi and Gujarati font support for Qt5 on i.MX6 (Yocto Linux 4.1.15)

Hindi and Gujarati font support for Qt5 on i.MX6 (Yocto Linux 4.1.15)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
i.mx6qt5linguistfontyocto
6 Posts 3 Posters 2.4k Views
  • 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.
  • A Offline
    A Offline
    Ajith_P_V
    wrote on last edited by Ajith_P_V
    #1

    Hi,
    As part of my current project, we need to support multiple languages on our Qt5 application.
    To get started with localization, I have made a simple program which support English, Hindi and Gujarati.
    I have referred the Qt reference and made the application using Qt Linguist.

    The application works fine on the Desktop (from Qt Creator with Qt5.7) and all language is supported fine.
    But, when I ported the same to the i.MX6 custom platform, then only English will display (Hindi and Gujarati will get blank and nothing will display on this language). The i.MX6 platform is based on Yocto Linux 4.1.15.

    I got to know that, the Hindi and Gujarati support may not be available in the i.MX6 by default and adding that might solve this issue. But, I don't know how to add it in Qt.
    Whether just copy and paste a correct *.ttf font file under "usr/lib/fonts" will solve this issue? Or any recommended way in Qt to do this?

    Looking forward to your reply.
    Thank you in advance,
    Ajith P V

    jsulmJ 1 Reply Last reply
    0
    • A Ajith_P_V

      Hi,
      As part of my current project, we need to support multiple languages on our Qt5 application.
      To get started with localization, I have made a simple program which support English, Hindi and Gujarati.
      I have referred the Qt reference and made the application using Qt Linguist.

      The application works fine on the Desktop (from Qt Creator with Qt5.7) and all language is supported fine.
      But, when I ported the same to the i.MX6 custom platform, then only English will display (Hindi and Gujarati will get blank and nothing will display on this language). The i.MX6 platform is based on Yocto Linux 4.1.15.

      I got to know that, the Hindi and Gujarati support may not be available in the i.MX6 by default and adding that might solve this issue. But, I don't know how to add it in Qt.
      Whether just copy and paste a correct *.ttf font file under "usr/lib/fonts" will solve this issue? Or any recommended way in Qt to do this?

      Looking forward to your reply.
      Thank you in advance,
      Ajith P V

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ajith_P_V I don't have a direct answer, but maybe this can help: http://doc.qt.io/qt-5/qt-embedded-fonts.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Ajith_P_V
        wrote on last edited by
        #3

        Hi @jsulm ,

        Thank you for your support.
        I have tried the following method and is working fine on the target (i.MX6 Dualite):

        • Found what *.ttf files are using by default for the required languages in the Host PC.

        • Copy those *.ttf files into the target under '/usr/lib/fonts'

        • Since the Qt can understand the default True Type Fonts, it is working fine on the target platform.

        I got this hint from the link provided by @jsulm :)

        jsulmJ 1 Reply Last reply
        1
        • A Ajith_P_V

          Hi @jsulm ,

          Thank you for your support.
          I have tried the following method and is working fine on the target (i.MX6 Dualite):

          • Found what *.ttf files are using by default for the required languages in the Host PC.

          • Copy those *.ttf files into the target under '/usr/lib/fonts'

          • Since the Qt can understand the default True Type Fonts, it is working fine on the target platform.

          I got this hint from the link provided by @jsulm :)

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ajith_P_V Glad it helped! :-)

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Cleiton BuenoC Offline
            Cleiton BuenoC Offline
            Cleiton Bueno
            wrote on last edited by
            #5

            @Ajith_P_V said in Hindi and Gujarati font support for Qt5 on i.MX6 (Yocto Linux 4.1.15):

            Gujarati

            @Ajith_P_V it is important you configure IMAGE_LINGUAS in Yocto with support:

            https://metacpan.org/pod/release/DROLSKY/DateTime-Locale-0.42/lib/DateTime/Locale/Catalog.pm

            gu Gujarati
            gu_IN Gujarati India

            hi Hindi
            hi_IN Hindi India


            Cleiton Bueno

            Blog | Linkedin | B2Open

            A 1 Reply Last reply
            2
            • Cleiton BuenoC Cleiton Bueno

              @Ajith_P_V said in Hindi and Gujarati font support for Qt5 on i.MX6 (Yocto Linux 4.1.15):

              Gujarati

              @Ajith_P_V it is important you configure IMAGE_LINGUAS in Yocto with support:

              https://metacpan.org/pod/release/DROLSKY/DateTime-Locale-0.42/lib/DateTime/Locale/Catalog.pm

              gu Gujarati
              gu_IN Gujarati India

              hi Hindi
              hi_IN Hindi India


              Cleiton Bueno

              Blog | Linkedin | B2Open

              A Offline
              A Offline
              Ajith_P_V
              wrote on last edited by
              #6

              @Cleiton-Bueno Thank you very much for providing me more information on the Yocto language selection.

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved