Bug 138783 - bitmap wide Latin chars in Japanese and Korean pango text
Summary: bitmap wide Latin chars in Japanese and Korean pango text
Keywords:
Status: CLOSED DUPLICATE of bug 107952
Alias: None
Product: Fedora
Classification: Fedora
Component: pango
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Owen Taylor
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-11 05:14 UTC by Jens Petersen
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:06:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
firefox-ja-no-pango-yahoo.png (137.70 KB, image/png)
2004-11-11 05:16 UTC, Jens Petersen
no flags Details
firefox-ja-pango-yahoo.png (139.02 KB, image/png)
2004-11-11 05:23 UTC, Jens Petersen
no flags Details

Description Jens Petersen 2004-11-11 05:14:20 UTC
Description of problem:
Running firefox with pango enabled, I see ASCII text in
Japanese rendered badly at the wrong size and with a bitmap
font that makes it stand out.  This is on a FC3 box.

Version-Release number of selected component (if applicable):
firefox-1.0-1

How reproducible:
every time

Steps to Reproduce:
1. Start a new firefox session with:
$ LANG=ja_JP.UTF-8 firefox
"http://headlines.yahoo.co.jp/hl?a=20041111-00000202-yom-bus_all"
2. Start a new firefox session with:
$ MOZ_ENABLE_PANGO=1 LANG=ja_JP.UTF-8 firefox
"http://headlines.yahoo.co.jp/hl?a=20041111-00000202-yom-bus_all"
  
Actual results:
(1) renders well with ASCII in the same font as the Japanese text as expected.
(2) renders with ASCII in an undersized bitmap font which looks bad.

Expected results:
(2) Should look pretty much like (1) with the same anti-aliased font for
ASCII text.

Comment 1 Jens Petersen 2004-11-11 05:16:32 UTC
Created attachment 106472 [details]
firefox-ja-no-pango-yahoo.png

Shot of (1) without pango.  Notice how "FRB" etc is in the right
size and font.

Comment 2 Jens Petersen 2004-11-11 05:23:08 UTC
Created attachment 106473 [details]
firefox-ja-pango-yahoo.png

With pango (2).  Notice how "FRB" in the title is tiny and
the other ascii text in the text too.

Actually the highlighted bracketed text moves around when it
is highlighted - though it can't be seen in this this screenshot.
The openning "(" is actually rendered correctly, but the "FRB)"
is small: when highlighted this text moves around.

Comment 3 Nakai 2004-11-11 05:53:51 UTC
Try install Japanese translation for firefox.

There is a similar bug for Mozilla:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107617

Comment 4 Jens Petersen 2004-11-11 06:19:05 UTC
Pango seems to fix the problem in bug 107617. :)
The problem reported here is a problem caused by pango rendering.

Comment 5 Warren Togami 2004-11-12 07:07:29 UTC
Reassigning to pango.  You can see this behavior in other pango using
applications.  One example:

1. xchat
2. enable cannaLE
3. Type "The"
4. Hit SPACE ENTER
5. Type "TESThe"
6. hit SPACE ENTER

Result:
T㸠has the "T" is smaller than 㸠because it is an ugly bitmap font.
TEST㸠has "TEST" the same size as ã¸.

Comment 6 Warren Togami 2004-11-12 07:17:48 UTC
Oops, the test case in Comment #5 above is bad.

However this is still a pango or font problem where multibyte latin
characters are falling back to the bitmap fonts.


Comment 7 Leon Ho 2004-11-12 07:23:13 UTC
Those two test cases are just the way CannaLE outputs.

The real question is: the multibyte 'T' (ï¼´) is using Fixed seems, and
Kochi has that glyphs (U+FF34)


Comment 8 Leon Ho 2004-11-12 07:26:10 UTC
Owen, seems pango is using Fixed for the multibyte 'T' (ï¼´). Is it a
known behavior on pango? (as mentioned, Kochi has that glyphs (U+FF34))

Comment 10 Owen Taylor 2004-11-18 18:13:53 UTC
This is basicallya dup of bug 107952. Pango says 'T', that's
Latin, not Han, this 'ja' language tag doens't make sense,
let me tag this with 'en'. But fontconfig doesn't consider
that Kochi is a good font for the 'en' language tag.

Probably easiest fix is to strip down the 'en' coverage that
fontconfig requires to not have all extended characters.

A fix for this specifically would be to reassign wide latin
characters to be Han instead of Latin, or to make them script
neutral. But that would cause Pango's script assigmments to
deviate from the Unicode standard, which I don't like.


*** This bug has been marked as a duplicate of 107952 ***

Comment 11 Jens Petersen 2005-03-01 11:03:04 UTC
I just tried fontconfig-2.2.99 and it seems to fix this issue too. :)

Will it be in fc4?

Comment 12 Red Hat Bugzilla 2006-02-21 19:06:55 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.