Skip to main content
GS1
Senior III
September 13, 2019
Solved

Did anyone manage to get Chinese characters using TouchGFX visible on an embedded system?

  • September 13, 2019
  • 1 reply
  • 4895 views

Hello all,

we have a system up and running using TouchGFX. The user interface can be switched between german and english using a system menu of my user interface while running the application on the board.

Now we will show the system on an exhibition in Shanghai and would like to have chinese as an additional language.

I succeeded to create another language in TouchGFX Designer (vV. 4.10.0), translated some of the menu items into chinese using google translator (e.g. "System setup" = "系统设置" ) and extended the wild cards of my typographics to have characters 0x20-0xFEFF.

In the font source there are several characters beyond 0xFF created in the file, however on the system the text is not visible. It shows "??????" which is the fall back character.

I use the Windows Font Calibri in different sizes and in notepad the chinese signs are visible with this font so it should be possible to used it for chinese characters.

Did anyone manage to get chinese working using TouchGFX?

Any hints are very much appreciated!

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Try this one. I've used it before. Try using something like a third party application to inspect your own fonts and check if you've provided the right ranges.

1 reply

Martin KJELDSEN
Principal III
September 16, 2019

Hi,

We have lots of chinese customers that use this feature. Check your generated/fonts/src folder to see if the fontconverter actually found the glyphs in the font. The pixel data for the unicodes are in the generated .cpp files and there's a comment for each unicode.

/Martin

GS1
GS1Author
Senior III
September 16, 2019

Hi Martin,

I have checked the generated font files and I found out that after character 0x2E17 the next character is 0xFB50. Chinese characters should be between 0x4000 and 0x9FFF. So chinese is missing!

What does influence the generation of the chinese characters?

Here is what I tried:

I succeeded to link the huge font files in my project in the external flash area.

I installed the chinese language set on my pc.

Tried to use Arial instead of Calibri. But still the same.

I deleted all existing font files from the "assets" folder so the designer generated the neccessary fonts again.

What else can I do to generate the chinese fonts files? Or can you generate one: Calibri - Bold, font sizes 27, 31 and 50 would help in the first place. Wildcard range: 0x20 - 0x9FFF.

We will fly to China on Thursday and would like to show it's possible to switch to chinese!

Any help is very much appreciated.

gaubuali
Associate II
September 13, 2021

Hi @GS@S​,

I am looking to move font files to external memories.

I wonder if you could share some tips ?