Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Mobile and Embedded
    i.mx6 qt5 linguist font yocto
    3
    6
    1560
    Loading More Posts
    • 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
      Ajith_P_V last edited by 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

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Ajith_P_V last edited by

        @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 Reply Quote 2
        • A
          Ajith_P_V last edited by

          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 :)

          jsulm 1 Reply Last reply Reply Quote 1
          • jsulm
            jsulm Lifetime Qt Champion @Ajith_P_V last edited by

            @Ajith_P_V Glad it helped! :-)

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

            1 Reply Last reply Reply Quote 0
            • Cleiton Bueno
              Cleiton Bueno last edited by

              @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 Reply Quote 2
              • A
                Ajith_P_V @Cleiton Bueno last edited by

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

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post