Author Topic: How to add chinese font support ? I try build myfireware ,but fault...  (Read 2202 times)

fanicy (OP)

  • Posts: 7
I try to add chinese support in fireware.
so I build fireware,by these link:
https://github.com/gcwnow/buildroot/wiki
http://www.gcw-zero.com/develop
http://boards.dingoonity.org/gcw-development/%28guide%29-build-firmware-from-source-and-flash-to-device/

and I adjust the busybox option:

config UNICODE_SUPPORT --->open
config LAST_SUPPORTED_WCHAR --> change 0 to 195101(HEX 2FA1D)
config UNICODE_WIDE_WCHARS --> open

AND then replace the ttf in dejavu-fonts-ttf-2.33.tar.bz2 with font that support  chinese .

then build file  and flash the fireware.

but it's not work ,the gcw can't boot,stay in the Splash Screen.

--------------------------------------------------------
how to add chinese font support in fireware?

I want to read the ROM's name with chinese.it's  many many chinese user want.


Apologize to my pool English.....

We look forward to your help.






fanicy (OP)

  • Posts: 7
AND ....2 questions:

1.Can I set the font(which Iwant,to replace the package dejavu-fonts-ttf-2.33.tar.bz2) assigned in fireware ?

in toolchain config?( make menuconfig)
or busybox config?(make busybox-menuconfig)

if  can ,how to do it?

------------------------------------------------------
2.Which option must be adjusted in busybox config?

There are many  linux  releases  support chinese font,So i think the opendingux can support chinese too.

Thank you!





mth

  • Posts: 317
Busybox is only used for scripting and command-line tools. If you want to support Chinese in the user interface, it is gmenu2x that you should be customizing.

For now the font path is hardcoded at the top of src/font.cpp (#define TTF_FONT), but it would be better to make that a configurable option, preferably with different fonts for different languages.

gmenu2x already uses unicode, but things like word wrapping might need to be changed for displaying Chinese properly.

You can start a custom-built menu at boot by creating a script /usr/local/sbin/frontend_start, for example:
Code: [Select]
#!/bin/sh
exec /usr/local/home/gmenu2x
This starts a gmenu2x executable from the home dir instead of from the rootfs; adjust the path if necessary.

fanicy (OP)

  • Posts: 7
Busybox is only used for scripting and command-line tools. If you want to support Chinese in the user interface, it is gmenu2x that you should be customizing.

For now the font path is hardcoded at the top of src/font.cpp (#define TTF_FONT), but it would be better to make that a configurable option, preferably with different fonts for different languages.

gmenu2x already uses unicode, but things like word wrapping might need to be changed for displaying Chinese properly.

You can start a custom-built menu at boot by creating a script /usr/local/sbin/frontend_start, for example:
Code: [Select]
#!/bin/sh
exec /usr/local/home/gmenu2x
This starts a gmenu2x executable from the home dir instead of from the rootfs; adjust the path if necessary.

Thank you!


but i mean NOT Only User Interface,like in ftp,or USE ReGBA selection ROM
 
I want to see in ftp client or ReGBAlike This:

/data/media/ROMS/GBA/黄金太阳.gba

not the
/data/media/ROMS/GBA/口口口口.gba

« Last Edit: June 29, 2015, 07:52:24 am by fanicy »

hi-ban

  • Posts: 886
Then you should also ask the developers of your FTP client to add chinese support on it.

And you should also contact the developers of every app and emulator you use and ask them to add chinese support.

 

Post a new topic