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. [Solved] Not displaying Chinese characters in embedded device
Forum Updated to NodeBB v4.3 + New Features

[Solved] Not displaying Chinese characters in embedded device

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.7k 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.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    Hello!

    I have built an Qt application, to demonstrate the language switching.

    I did implement to support English, French, German, Hebrew, Arabic, Chinese Traditional and Chinese Simplified.

    When I build the application for desktop, I could see all the translations properly.

    But, when I cross compile the application for target which is AM335x TI target, it can display all the translations properly except Chinese both traditional and simplified.

    I was going through lot forums to seek the answer.

    I did come across a post which says fonts are present in /usr/lib/fonts folder and the target looks for the fonts in /usr/share/fonts which is not present. I did copy the fonts folder to /usr/share directory and given a try. But I did not succeed.

    Can you please help me out to understand what is happening and what is the resolution?

    Thank you,
    Kumar

    --Kumar

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kumararajas
      wrote on last edited by
      #2

      For the benefit of other developers,

      I did fix the issue!

      Solution was, chinese font was missing in the target. By copying the right chinese font to the target, application was able to draw the text in chinese characters.

      It looks like Qt looks for the valid font. If valid font is not present, then it loads the default font.

      --Kumar

      1 Reply Last reply
      0

      • Login

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