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 24 Nov 2012 08:37:21 AM UTC  
Category:  None Severity:  3 - Normal
Release:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

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


( Jump to the original submission)

Sun 03 Nov 2013 04:54:43 PM UTC, 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 27 Dec 2012 02:16:36 PM UTC, 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 17 Dec 2012 04:08:06 PM UTC, 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 11 Dec 2012 07:18:55 AM UTC, comment #5:

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

Nutchanon Wetchasit <nachanon>
Tue 11 Dec 2012 06:59:22 AM UTC, 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 08 Dec 2012 01:01:12 AM UTC, comment #3:

My computer:
gnash 0.8.11
Firefox 17.0.1
Lubuntu 12.04

Walter Cheuk <wwycheuk>
Sat 08 Dec 2012 12:57:35 AM UTC, 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 28 Nov 2012 11:34:21 AM UTC, 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 24 Nov 2012 08:37:21 AM UTC, 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 Files:

Attached Files
file #29531:  zh-text.png added by ousia (15KiB - image/png - Image with sdl-gnash from git (master-21901-77966b2))
file #27153:  zh-text.zip added by nachanon (155KiB - 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
  • -email is unavailable- added by ousia (Updated the item)
  • -email is unavailable- added by nachanon (Posted a comment)
  • -email is unavailable- added by wwycheuk (Submitted the item)

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-03 ousia Attached File- => Added zh-text.png, #29531
    2012-12-27 nachanon Attached File- => Added zh-text.zip, #27153

    Back to the top

    Powered by Savane 3.4