[Webkit-unassigned] [Bug 42251] New: [GTK]Text shadow is displayed wrong for text starting with
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 14 05:53:01 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42251
Summary: [GTK]Text shadow is displayed wrong for text starting
with
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mihnea at adobe.com
Hi,
Suppose i have the following HMTL snippet:
<div style="text-shadow:red 10px 10px 0px"> Test</div>
GtkLauncher displays the shadow incorrectly: the red shadow is clamped so that only *Tes* letters are completely visible. Only part of last *t* letter is displayed.
If i do something like ( not the first item in text):
<div style="text-shadow:red 10px 10px 0px">T est</div>
then the text shadow is displayed correctly.
I saw this failure when i first loaded layout test: *fast/repaint/shadow-multiple-horizontal.html* in GtkLauncher and i noticed that the text shadows were not diplayed correctly. However, if character is not the first character in the text, then the shadow is displayed correctly. Debugging the code a little, i saw that in FontCairo.cpp, function drawGlyphs, calling *cairo_scaled_font_glyph_extents* issues different values for: * Test* and *T est*, the latter being bigger and rendered correctly.
The cairo port on Windows does not have this problem.
Regards,
Mihnea Ovidenie
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list