Closed Bug 347011 Opened 18 years ago Closed 17 years ago

[WinXP][Win2003] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP and Win2003 (Win2k and WinVista don't have the problem)

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: nir123, Assigned: masayuki)

References

Details

(Keywords: platform-parity, regression, testcase)

Attachments

(2 files, 3 obsolete files)

see the upcoming testcase for details. Thanks to Simon Montagu I understood that the real problem is letter-spacing and not something else. this bug makes verdana text,links and more to being displayed incorrectly.
Attached file testcase (obsolete) (deleted) —
The bug is cairo-related. I can see the bug with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060731 Minefield/3.0a1
WFM on Win2k Repro on WinXP (without smoothing/with ClearType)
Attached file testcase of using spacing (obsolete) (deleted) —
It's strange... I cannot reproduce this bug with other fonts. And if with spacing drawing(this testcase), this bug doesn't occur.
Attached file testcase (obsolete) (deleted) —
I cannot understand what happen. At same time, GetCharacterPlacement and GetTextExtentPoint32 return different width in same DC. This problem only happens at 10px Verdana or 9px Verdana. These font are calculated the each glyph widths same as other font that is used *at first time in the process*. I thought that this is a bug of Verdana or the API. But I created the simple application that is checking the results of GetCharacterPlacement and GetTextExtentPoint32 works fine. So, this problem is a bug of thebes or cairo. But I don't have idea for fix. Stuart, would you have the ideas?
Attachment #231755 - Attachment is obsolete: true
Attachment #231979 - Attachment is obsolete: true
Summary: letter spacing is wrong on verdana font in case of 7pt text after 10px text → GetCharacterPlacement returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem)
And ScriptPlace has same problem. This bug is occurred in both MeasureOrDrawFast and MeasureOrDrawUniscribe.
Summary: GetCharacterPlacement returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem) → GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem)
I can see more problems with other fonts such as: Times new roman and Book Antiqua. When using Times New Roman the problem is only when font size is 12px.
I found the way for fix this bug. I'll create the patch.
Assignee: nobody → masayuki
We cannot look the problem by the testcase. Because by the patch of bug 342366, we don't use GetCharacterPlacement for simple text if the color is solid. But on non-solid case and uniscribe still have same problem. Don't close this bug.
Attached file testcase for uniscribe (deleted) —
Attachment #232296 - Attachment is obsolete: true
I cannot reproduce this bug on WinVista(b2 5384). This bug happens only on WinXP...
Summary: GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem) → [WinXP] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem)
Regression range for this bug is: 2006-06-09-04 | 2006-06-10-05 maybe bug 340590 is the cause for this bug?
Blocks: 340590
This can be reproduced on Win Server 2003 R2. We need the care for NT5.1 and NT5.2 only.
Summary: [WinXP] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP (Win2k doesn't have the problem) → [WinXP][Win2003] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP and Win2003 (Win2k and WinVista doesn't have the problem)
Status: NEW → ASSIGNED
Summary: [WinXP][Win2003] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP and Win2003 (Win2k and WinVista doesn't have the problem) → [WinXP][Win2003] GetCharacterPlacement/ScriptPlace returns wrong widths for 10px Verdana or 9px Verdana only on WinXP and Win2003 (Win2k and WinVista don't have the problem)
GetCharacterPlacement was removed from trunk, therefore, this bug is not reproduced on GDI path. But we still need to fix this bug in Uniscribe path.
fm.. on win xp, I cannot reproduce this bug in my testcases. Can anybody reproduce this bug? But the current code doesn't clear the script cache, I cannot understand what suppresses this bug. And I'll test this with Win Server 2003 R2.
Can't reproduce the bug anymore on WinXP with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a6) Gecko/20070629 GranParadiso/3.0a6
I cannot reproduce this bug on Win2003 R2 too. -> WFM
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: