Japanese font is not used in Firefox

Bug #598720 reported by Nobuto Murata
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: language-selector

In Firefox, Japanese font is not used.

Expected results:
1. open Japanese page (e.g. https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/ja ) with Firefox
2. rendered with Japanese Font

Actual results:
 rendered with non-Japanese Font (Maybe Chinese font)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: language-selector-common 0.6.0
ProcVersionSignature: Ubuntu 2.6.35-5.6-generic 2.6.35-rc3
Uname: Linux 2.6.35-5-generic i686
Architecture: i386
Date: Sat Jun 26 14:57:32 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=ja_JP.utf8
 SHELL=/bin/bash
SourcePackage: language-selector

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

I emphasized 3 characters.
These characters looks clearly different.

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

attached branch will fix this issue.
but I don't know whether it's right approach.

Revision history for this message
Nobuto Murata (nobuto) wrote :

Arne,
You made this bug as a duplicate of bug #569442.
The fix of bug #569442 (* update fontconfig/69-language-selector-ja-jp.conf: change binding to 'strong') does not fix this issue.
So this is not a duplicate, I think.

Revision history for this message
Arne Goetje (arnegoetje) wrote : Re: [Bug 598720] Re: Japanese font is not used in Firefox

On 06/29/2010 06:05 PM, Nobuto MURATA wrote:
> *** This bug is a duplicate of bug 569442 ***
> https://bugs.launchpad.net/bugs/569442
>
> Arne,
> You made this bug as a duplicate of bug #569442.
> The fix of bug #569442 (* update fontconfig/69-language-selector-ja-jp.conf: change binding to 'strong') does not fix this issue.
> So this is not a duplicate, I think.
>
Murata-san,

how does the output of
ls /etc/fonts/conf.d/
look like?

Cheers
Arne

Revision history for this message
Nobuto Murata (nobuto) wrote :

attached "ls /etc/fonts/conf.d/ > output_etc_fonts_confd.txt" result.

Revision history for this message
Arne Goetje (arnegoetje) wrote :

ok, looks good. can you please attach your /etc/fonts/conf.d/69-language-selector-ja-jp.conf ?

Revision history for this message
Nobuto Murata (nobuto) wrote :

attached my /etc/fonts/conf.d/69-language-selector-ja-jp.conf.
It seems the same as the version 0.6.0 on Maverick.
http://bazaar.launchpad.net/~ubuntu-core-dev/language-selector/ubuntu/annotate/head:/fontconfig/69-language-selector-ja-jp.conf

Revision history for this message
Arne Goetje (arnegoetje) wrote :

Ah, I see the problem...

Looking at the source of the wiki.ubuntu.com page, it reveals, that the body text is tagged with lang=en and not lang=ja.
So, the real bug is that the wiki page does not use the correct language tag. Fontconfig is not to blame here.

Now the question is (and this needs to be discussed with the community), how to handle such cases.
The fontconfig way, to filter by language tag, does not work with such webpages. Removing the language tag filter, like the proposed patch does it, would mean, that the current fontconfig-voodoo hack would be needed forever and that there is no way to get a generic fontconfig configuration that works for everyone.

The proper fix (IMHO) would be to ask the sysadmins to make wiki.ubuntu.com support all available languages, so that we can use tags like '##language:ja' (old) or '#language ja' (new) in the wiki page to indicate that it should be rendered differently.

Arne Goetje (arnegoetje)
Changed in language-selector (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for language-selector (Ubuntu) because there has been no activity for 60 days.]

Changed in language-selector (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.