Building Qt5 Yocto Image with Turkish and Chinese characters?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building Qt5 Yocto Image with Turkish and Chinese characters?

Jump to solution
3,490 Views
turkersezgin
Contributor III

Hello everyone,

I have u-boot and kernel. I want to create a Rootfs from yocto.

I download all files with Mfg tool to my board. Everything work good.

But when I run my GUI app, I can not see Turkish and Chinese characters.

How can i add these?

I have to make some modifications, but in kernel or in rootfs.. I dont know this.

Please may you help me?

Thank you for your support.

Have a nice day.

Tags (2)
1 Solution
2,507 Views
joanxie
NXP TechSupport
NXP TechSupport
8 Replies
2,507 Views
joanxie
NXP TechSupport
NXP TechSupport

my test steps:

1put this package to /usr/lib/fonts
then in the imxplayer, pls choose wenquanyi micro hei

2) cp /usr/lib/fonts/wqy-microhei.ttc /usr/share/fonts/ttf/
fc-list
gst-launch-1.0 playbin flags=0x17 subtitle-font-desc="WenQuanYi Micro Hei  Regular 14" uri=file://。。。。。。。

2,507 Views
turkersezgin
Contributor III

Hello Joan Xie,

Thanks for your big support.

Everything is perfect now.

I have Chinese and Turkish charcters.

Thanks again. :smileyhappy:

0 Kudos
2,507 Views
joanxie
NXP TechSupport
NXP TechSupport

try to use the steps to add chinese character: (the example for mx6ul board)

 Modify configuration to support Chinese character set.

    $ source setup-environment imx6ul-build-directory

    $ cd conf

    $ vi local.conf      ;add the following two lines to support Chinese in the end

    GLIBC_GENERATE_LOCALES = "zh_CN.UTF-8 en_GB.UTF-8 en_US.UTF-8"

    IMAGE_LINGUAS ?= "zh-cn"

    $ cd .. && bitbake fsl-image-gui

burn the new image to your board

Boot up your i.mx6ul-EVK board and copy wenquanyi.ttf to /usr/share/fonts/ttf/

    # cd /usr/share/fonts/ttf

    # rz      ; then select wenquanyi.ttf as z-modem received file

    # fc-cache -lv

5. Add LANG=zh_CN.UTF-8 in your environment varialbe

    # vi /etc/profile      ;add the following line in the end

    export LANG=zh_CN.UTF-8

2,507 Views
turkersezgin
Contributor III

Hello Joan Xie,

Thanks for your reply.

I did these steps, I had an image with Turkish and Chinese languages but There are no Turkish characters on the my GUI.

Do you have any suggestion about this?

Thank you very much. Best regards.

0 Kudos
2,507 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't have Turkish characters package, I think the same steps as chinese character, if you have, put the same path as chinese character.

0 Kudos
2,507 Views
turkersezgin
Contributor III

Hello Joan Xie,

Thanks for your reply to my question.
I did your steps, but on my gui (it was created at qt creator) I can not see chinese characters. I run my gui at my Ubuntu desktop PC, I can see all Chinese charcters. I read all text from XML file on my gui. Maybe I write wrong TTF name in XML file.

Also I did not do this steps.

# rz      ; then select wenquanyi.ttf as z-modem received file

 # fc-cache -lv

I generate my own rootfs, But there is not rz command.. This is important?

wenquanyi ttf's name is "WenQuanYi Micro Hei" or it is only WenQuanYi?

0 Kudos
2,507 Views
turkersezgin
Contributor III

I added a package for rz command. I wrote "rz" command in /usr/share/fonts/ttf directory.

It takes a few minutes. But it is running... I am waiting for this..

0 Kudos
2,508 Views
joanxie
NXP TechSupport
NXP TechSupport

you also can refer to this customer:

https://community.nxp.com/thread/454559