bugGnash - The GNU Flash player - Bugs: bug #37802, Chinese characters appears as boxes


bug #37802: Chinese characters appears as boxes

Submitted by:  Walter Cheuk <wwycheuk>
Submitted on:  Sat Nov 24 08:37:21 2012  
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sun Nov 3 16:54:43 2013, comment #8:

At least with the example provided by Nachanon, everything seems to work fine with git from today; Gnash 0.8.11dev (master-21901-77966b2).

Image attached. It works with both gtk-gnash and sdl-gnash.

(file #29531)

Pablo Rodríguez <ousia>
Thu Dec 27 14:16:36 2012, comment #7:

I've created a flash file that exposed this problem,
by using a dynamic textbox with Chinese and English text,
and set it to use "WenQuanYi Zen Hei" font (Chinese, sans-serif),
with and without font embedding.
(One with font embedding was for reference only)

These are image results from Macromedia Flash Player 7.
You'd see that if WenQuanYi font was not exist on the system
English text will be substituted by Times New Roman (English, serif) and
Chinese text with SimSun (Chinese, serif) font.

These are image results from Gnash 0.8.10.
You'd see that if WenQuanYi font was not exist on the system
Chinese text will be displayed as boxes, even if it could be subsituted with the installed AR PL UMing CN or SimSun (Chinese, serif) font.
But it seems odd that English one was able to be substituted with the installed Tahoma (English, sans-serif) font.

My test flash file (Flash 7) created with Macromedia Flash MX 2004,
along with screenshots and font download link. Also attached here (file #27153).

Also note that Gnash seems not supporting the "line spacing" option of textbox.

System: Debian GNU/Linux 5.0 "Lenny" i386
Gnash: gnash 0.8.10-1~lenny from getgnash.org APT repository

Nutchanon Wetchasit <nachanon>
Mon Dec 17 16:08:06 2012, comment #6:

My bad, my tested font didn't actually have Chinese glyphs.
Even so, Flash 7 (Win32) still displayed the text correctly.

It seems that the primary reason the browsers (GNU/Linux) and Flash 7 (Win32) are able to display Chinese even specified font didn't have the glyph, but Gnash isn't; because Gnash lacked glyph (font) substitution.

Nutchanon Wetchasit <nachanon>
Tue Dec 11 07:18:55 2012, comment #5:

And also note that Gnash seems not supporting text selection on SWF input text.

Nutchanon Wetchasit <nachanon>
Tue Dec 11 06:59:22 2012, comment #4:

OK, It seems that Gnash didn't display Chinese properly if the SWF require a use of local font.
(Displaying using embedded glyph or embedded font worked fine.)

But (to my surprise), it failed handling Chinese, but correctly handled Thai text (my tested font supports both Thai and Chinese). I'll try to find out if it have anything to do with my locale settings or not.

I'll post a test case here as soon as I can.

Nutchanon Wetchasit <nachanon>
Sat Dec 8 01:01:12 2012, comment #3:

My computer:
gnash 0.8.11
Firefox 17.0.1
Lubuntu 12.04

Walter Cheuk <wwycheuk>
Sat Dec 8 00:57:35 2012, comment #2:

Please see http://metrohk.com.hk instead and note the texts to the right of the flash object in the centre

Walter Cheuk <wwycheuk>
Wed Nov 28 11:34:21 2012, comment #1:

Do you still have a link to a video that have the problem?
If so, post it here.

And (just in case) which version of gnash, browser and OS you're using?

Nutchanon Wetchasit <nachanon>
Sat Nov 24 08:37:21 2012, original submission:

Chinese characters appears over flash video are displayed as boxes

Walter Cheuk <wwycheuk>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #29531:  zh-text.png added by ousia (15kB - image/png - Image with sdl-gnash from git (master-21901-77966b2))
file #27153:  zh-text.zip added by nachanon (155kB - application/zip - Test flash file (Flash7) and font)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ousia (Updated the item)
  • -unavailable- added by nachanon (Posted a comment)
  • -unavailable- added by wwycheuk (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 3 16:54:43 2013ousiaAttached File-=>Added zh-text.png, #29531
    Thu Dec 27 14:14:46 2012nachanonAttached File-=>Added zh-text.zip, #27153

    Back to the top

    Powered by Savane 3.1-cleanup1