Forum Discussion

p2premote's avatar
p2premote
Visitor
14 years ago

chinese characters can not be dislayed

I tried to use the roku ui component to display Chinese characters (title, description etc), but them simply won't show up.

Is there a way to work around this problem?

5 Replies

  • You will probably need to develop your own screen using roScreen and roFontResource with a Chinese TTF font.

    -Joel
  • is there any document about roFontResource? I can not find it in the sdk documentations. And nothing shows up with google....
  • sorry, its roFont and roFontRegistry, and the docs are in the Brightscript Reference Manual.

    - Joel
  • I saw roFontRegistry in the component reference but no roFont everywhere, where is it?

    Also, the chinese fonts are all very large (about 6M), am not able to bundle thew in the app due to the size. Is it other way to get them into the system?

    Thanks.
  • roFont is in the Brightscript manual, where pretty much all the new features are.

    Maybe there is a smaller font you can find? If not, then you can use roURLTransfer gettofile() or asyncGettoFile() to download to tmp:/ but 6mb is a significant bandwidth hit if you have lots of users (although, nothing near the bandwidth cost of streaming video).

    A quick google search for Chinese fonts file size comes up with quite a variety of fonts.

    - Joel