[Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-12-04 Thread Daniel T Chen
** Changed in: flashplugin-nonfree (Ubuntu)
   Importance: Undecided = Low
   Status: Incomplete = Confirmed

** Changed in: fontconfig (Ubuntu)
   Status: New = Confirmed

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-09-06 Thread David Nemeskey
I am just a regular user, but I am not really sure if this is a
solution.

 I guess the bug is that flashplayer queries for Bitstream and not for sans, 
 which should provide the
 appropriate CJK font, depending on your fontconfig settings. But I could be 
 wrong with this and the
 bug is actually somewhere else...
Have you (or someone) contacted Adobe about this bug? Since all applications 
except Flash Player behave correctly, it would be pretty safe to assume that it 
is the culprit. I have looked for Japanese-related bugs in the Adobe bug 
database, and only found these two:

https://bugs.adobe.com/jira/browse/FP-98
https://bugs.adobe.com/jira/browse/FP-136

The second is not relevant, and the first doesn't seem to be an exact
hit, either. I guess opening a new one would not hurt, provided the
problem is really with the plugin.

 So, IMHO all applications which handle text display, need to be fixed to 
 support lang tags.
 Unfortunately this not something I can do.
Yes, and let's not forget that it cannot even be done for all applications. 
Even if the Linux part is alright, what about, say,  MSN in Kopete, etc?

Yes, language tags are a good and long-missing feature, but until they
become a reality, we still need to tell the system our preferences:
Chinese or Japanese first. And for me, it's definitely Japanese. If it
can be done in the 48-whatever.conf, fine, but it still seems like a big
hack.

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-09-01 Thread Anthony Fok
** Summary changed:

- Adobe flash player 9 can't display chinese font
+ Adobe Flash player 9 cannot display Chinese font

** Description changed:

- on ubuntu 7.10, flash player 9 can display chinese or Japanese fonts,
- but on ubuntu 8.04 it doesn't work. attachment file is screenshot.
+ On Ubuntu 7.10, Adobe Flash player 9 can display Chinese or Japanese
+ (and likely Korean) glyphs, but on Ubuntu 8.04 it doesn't work,
+ displaying squares for non-Latin glyphs instead.  It seems that
+ Bitstream Vera Sans (with no font substitution) is used rather than
+ WenQuanYi Zen Hei or other appropriate CJK fonts.  A screenshot is
+ attached.
+ 
+ Steps to reproduce:
+ 
+  1. System - Properties - Language Support (from language-selector),
+ and select one of the CJK locales as the default.
+ 
+  2. Re-login as needed.
+ 
+  3. Start Firefox and open e.g. http://www.tudou.com/ .

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-09-01 Thread Anthony Fok
On further investigation, it appears that this bug has to do with an
interaction between:

 * /etc/fonts/conf.d/49-sansserif.conf  (from fontconfig-config), and

 * /etc/fonts/conf.d/69-language-selector-zh-cn.conf  (from 
language-selector-common)
(substitute zh-cn for other locales)

Quite a few Ubuntu users have blogged about this problem, and the usual
quick fix is to get rid of /etc/fonts/conf.d/49-sansserif.conf , or
change the append_last sans-serif therein to some other font.  That
said, I agree with Arne's assessment: Removing 49-sansserif.conf does
not seem to be the right way, especially since this file is part of
the upstream source, probably added by Keith Packard himself?

This trick works for me:
   $ cd /etc/fonts/conf.d/
   $ sudo mv 69-language-selector-zh-cn.conf 48-language-selector-zh-cn.conf

Such that the Chinese-specific prepend config is sourced first.
Please try and see if this trick works for you too.

I also tried playing with the following command (under the zh_CN.UTF-8
locale):

$ FC_DEBUG=1 firefox http://www.tudou.com/

Checking the of the debug output, it appears that Adobe Flash is trying
to search for the appropriate font similar to the following command:

$ FC_DEBUG=1 fc-match
'/usr/share/fonts/truetype/ttf\-bitstream\-vera/Vera.ttf':scalable=true

With 49-sansserif.conf and 69-language-selector-zh-cn.conf, fc-match returns:
Vera.ttf: Bitstream Vera Sans Roman

With 48-language-selector-zh-cn.conf and 49-sansserif.conf, fc-match returns:
wqy-zenhei.ttf: WenQuanYi Zen Hei 中等

Arne, what do you think?  Would that be an appropriate fix for language-
selector?

Thanks,

Anthony

** Changed in: language-selector (Ubuntu)
   Status: New = Confirmed

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-09-01 Thread David Nemeskey
Actually I don't know how the language selector works, but what about
the language_selector/fontconfig files? Why aren't they used by the
Flash Player?

Also, if you make this change, will Latin (like English) text be displayed by 
the Chinese font? Because that just won't do, the Latin part of East Asian 
fonts is too ugly. And please don't forget about Japanese either :)
(And here comes the question: which one should get a lower number? Japanese or 
Chinese? I would hate to see Chinese glyphs in Japanese text...)

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 207198] Re: Adobe Flash player 9 cannot display Chinese font

2008-09-01 Thread Arne Goetje
David Nemeskey wrote:
 Actually I don't know how the language selector works, but what about
 the language_selector/fontconfig files? Why aren't they used by the
 Flash Player?

According to Anthony's statement, flashplayer uses fc-match to query the
Bitstream font. As the fontconfig files provided by language-selector
*are* used by fontconfig, I guess the bug is that flashplayer queries
for Bitstream and not for sans, which should provide the appropriate
CJK font, depending on your fontconfig settings. But I could be wrong
with this and the bug is actually somewhere else...

I will investigate this issue further... please give me some time, as
I'm flooded with work currently.

 Also, if you make this change, will Latin (like English) text be displayed by 
 the Chinese font? Because that just won't do, the Latin part of East Asian 
 fonts is too ugly. And please don't forget about Japanese either :)
 (And here comes the question: which one should get a lower number? Japanese 
 or Chinese? I would hate to see Chinese glyphs in Japanese text...)

This is an issue we cannot fix at the moment, but it's on my agenda.
Proper handling of CJK fonts in applications would need the text which
is to be rendered to be tagged with the appropriate language tag. Then,
fontconfig can provide an appropriate font to render that text.
In other words, the texts would need to use some markup language (like
xml) to carry the language tag, and the applications, which display such
texts, would need to parse those tags and ask the rendering engine to
honor the lang tag.
So, IMHO all applications which handle text display, need to be fixed to
support lang tags. Unfortunately this not something I can do. This issue
needs to be addressed upstream for each application and library separately.

-- 
Adobe Flash player 9 cannot display Chinese font
https://bugs.launchpad.net/bugs/207198
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs