[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-11 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #20 from [EMAIL PROTECTED]  2008-09-11 13:22 PDT ---
(In reply to comment #15)
> Just a question, do you plan to fix this bug for the pango backend as well or
> should I file a seperate bug for that?
> 

Please ignore this comment, I just noticed I am already CC'ed on duplicate of
this bug for pango backed: bug #18546

Anyway, thanks for fixing this at least for the FreeType backend :-)


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-09 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #19 from [EMAIL PROTECTED]  2008-09-09 21:34 PDT ---
Landed in r36309.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-09 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #23155|review? |review+
   Flag||




--- Comment #18 from [EMAIL PROTECTED]  2008-09-09 18:15 PDT ---
(From update of attachment 23155)
r=me


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #17 from [EMAIL PROTECTED]  2008-09-04 22:14 PDT ---
(In reply to comment #16)
> Created an attachment (id=23175)
 --> (https://bugs.webkit.org/attachment.cgi?id=23175&action=view) [edit]
> Gecko vs. WebKit japanese text rendering
> 
> Here's the promissed attachment. On a closer look it seems like gecko and
> webkit selects different fallback fonts for Japanese, I think that might be 
> the
> cause.

I have had this kind of hinting being off problem for some fonts for a while
with fontconfig ; this is not webkit related.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #16 from [EMAIL PROTECTED]  2008-09-04 13:07 PDT ---
Created an attachment (id=23175)
 --> (https://bugs.webkit.org/attachment.cgi?id=23175&action=view)
Gecko vs. WebKit japanese text rendering

Here's the promissed attachment. On a closer look it seems like gecko and
webkit selects different fallback fonts for Japanese, I think that might be the
cause.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #15 from [EMAIL PROTECTED]  2008-09-04 12:56 PDT ---
Just tested the patch against r35913 with freetype backend on Fedora 9 and it
works! Only glyphs hinting seems to be turned off for the previously not
displayed text. I'll attach a screenshot to show the difference between gecko
and webkit. I've tested on japanese wikipedia.

Just a question, do you plan to fix this bug for the pango backend as well or
should I file a seperate bug for that?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #13 from [EMAIL PROTECTED]  2008-09-04 10:07 PDT ---
(In reply to comment #12)
> Still does not work for me. Pango backend, test site: http://identi.ca/kosugi,
> expected to see japanese glyphs
> 

The patch adds fallback for the FreeType backend, not the Pango backend.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #14 from [EMAIL PROTECTED]  2008-09-04 10:11 PDT ---
(In reply to comment #13)
> (In reply to comment #12)
> > Still does not work for me. Pango backend, test site: 
> > http://identi.ca/kosugi,
> > expected to see japanese glyphs
> > 
> 
> The patch adds fallback for the FreeType backend, not the Pango backend.
> 

Ah.. sorry I misread Pango part.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-04 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #12 from [EMAIL PROTECTED]  2008-09-04 08:48 PDT ---
Still does not work for me. Pango backend, test site: http://identi.ca/kosugi,
expected to see japanese glyphs


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-03 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #11 from [EMAIL PROTECTED]  2008-09-03 20:01 PDT ---
(In reply to comment #10)
> Created an attachment (id=23155)
 --> (https://bugs.webkit.org/attachment.cgi?id=23155&action=view) [edit]
> Font selection and rendering fixes
> 
> GTK+ font fixes and enhancements.
> 
> Implement font fallback for the simple FontConfig-based text path and
> improve the Pango-based complex text path to make use of requested
> font properties and available font selection.
> 
> Add text shadow support to the complex path.
> 

Some notes on this patch:

1) These changes push Pango's high level (layout) API as far as it can go. If
we want to go further we'll probably want to use the low-level Pango API
directly as Mozilla does, but at least the complex path is now
feature-complete.

2) FontPlatformDataGtk's comparison operator and copy constructor need to be
fixed some time to avoid leaking FontPlatformDatas. The leaks are pretty minor
(per-font) and the fix was too involved to be ready for this patch.

3) Our FontConfig-based fallback font selection doesn't always match what Pango
would select since we don't have that kind of advanced coverage analysis, but
with these changes the simple path does successfully select fonts with the
necessary glyphs available for the first time.

I hope this improves the experience for users of non-Latin scripts and would be
interested to get some feedback. You need to build with the "freetype" backend
to see most of the improvements since they haven't been implemented in the
"pango" backend yet.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-09-03 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #23155||review?
   Flag||




--- Comment #10 from [EMAIL PROTECTED]  2008-09-03 19:53 PDT ---
Created an attachment (id=23155)
 --> (https://bugs.webkit.org/attachment.cgi?id=23155&action=view)
Font selection and rendering fixes

GTK+ font fixes and enhancements.

Implement font fallback for the simple FontConfig-based text path and
improve the Pango-based complex text path to make use of requested
font properties and available font selection.

Add text shadow support to the complex path.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-08-25 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #9 from [EMAIL PROTECTED]  2008-08-25 02:49 PDT ---
Just a food for thought, but would it be possible to separate CSS font
selection from glyphs font selection? I mean, we should select a font to be
used for the current rendered element as specified in CSS, e.g. if there's 

font-family = arial, "Liberation Sans", sans-serif

then try arial, if not present try Liberation Sans and if still not present
then use sans-serif family, system default, and let pango/freetype substitution
functions handle the rest? I.e. the font selection for HTML elements would be
done traditional way (as it is done now) and font selection for the glyphs
themselves would be left for pango/freetype to solve.

Does that sound sane? It seems to me like a good way to have both the CSS font
selection working and this bug fixed...


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-08-17 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #8 from [EMAIL PROTECTED]  2008-08-17 08:42 PDT ---
I can confirm, that what Alp suggested fixes the issue for Japanese/Chinese (in
my case I run LC_ALL="zh" midori), but it instead breaks some other skripts,
e.g. some latin extensions in Slavic languages (on wikipedia I noticed missing
š and č). Also, during writing this text I noticed that in the input boxes
both š and č can be writen and is displayed correctly.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-08-17 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #7 from [EMAIL PROTECTED]  2008-08-17 08:02 PDT ---
When the environment variable LC_ALL="zh" is set, Chinese and Japanese text
works, at least with the FreeType backend. This might help some users in the
meantime.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-06-18 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #6 from [EMAIL PROTECTED]  2008-06-18 17:50 PDT ---
I think this workaround doesn't actually work, or works with a major flaw--it
just causes the font matching to always match "Arial Unicode MS", even when I
specify .

(In reply to comment #2)
> Bin Chen tracked down the issue. The problem is font fallback. A very simple
> workaround (substitute "Arial Unicode MS" with any full-Unicode font you have
> on your system):
> 
> 
> Index: WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp
> ===
> --- WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp   (revision
> 30082)
> +++ WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp   (working copy)
> @@ -81,6 +81,8 @@ FontPlatformData::FontPlatformData(const
> 
>  if (!FcPatternAddString(pattern, FC_FAMILY, reinterpret_cast FcChar8*>(fcfamily)))
>  goto freePattern;
> +if (!FcPatternAddString(pattern, FC_FAMILY, reinterpret_cast FcChar8*>("Arial Unicode MS")))
> +goto freePattern;
>  if (!FcPatternAddInteger(pattern, FC_SLANT, fcslant))
>  goto freePattern;
>  if (!FcPatternAddInteger(pattern, FC_WEIGHT, fcweight))
> 
> 
> 
> 
> We haven't figured out what the correct fix for this is yet. (Perhaps the 
> Pango
> font selection patch would have helped here, but it has not been 
> re-submitted.)
> 


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-06-17 Thread bugzilla-daemon
https://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #5 from [EMAIL PROTECTED]  2008-06-17 17:15 PDT ---
I'm not familiar with the font-related code, but my initial impression of
FontFallbackList based on its name and interface suggests that it's a list of
FontDatas from which you can pick one that has the glyphs for the string you
want to display, by calling FontFallbackList::fontDataForCharacters(). 
However, it seems that the only time anything is added to the list is when
Font::Font() calls FontFallbackList::setPlatformFont().  If FontFallbackList is
really a fallback list, then, shouldn't more fonts be added to it at other
places?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-06-02 Thread bugzilla-daemon
http://bugs.webkit.org/show_bug.cgi?id=16792





--- Comment #4 from [EMAIL PROTECTED]  2008-06-02 12:24 PDT ---
(In reply to comment #3)
> corespoding japaneses/chinese fonts have mincho style? Wouldn't it be better
err... I actually meant gothic style, mincho style is coresponding to latin
serif family...


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-06-02 Thread bugzilla-daemon
http://bugs.webkit.org/show_bug.cgi?id=16792


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Comment #3 from [EMAIL PROTECTED]  2008-06-02 12:22 PDT ---
Hm... perhaps the problem is with webkit looking for sans font while the
corespoding japaneses/chinese fonts have mincho style? Wouldn't it be better to
leave all the font selection work to pango? IFAIK it is designed for that and
it should work properly. As for the patch you are talking about, may I ask
where can I find it? I am not much familiar either with C++ (although I am
familiar with plain C) or with WebKit, but I might give it look to see if I can
come up with something.

Also I noticed that bug 18546 seems to be duplicate of this one.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list


[Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

2008-06-02 Thread bugzilla-daemon
http://bugs.webkit.org/show_bug.cgi?id=16792


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||fedora-fonts-bugs-
   ||[EMAIL PROTECTED]




-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list