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)
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.
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
Assignee | ||
Comment 2•18 years ago
|
||
WFM on Win2k
Repro on WinXP (without smoothing/with ClearType)
Assignee | ||
Comment 3•18 years ago
|
||
It's strange...
I cannot reproduce this bug with other fonts.
And if with spacing drawing(this testcase), this bug doesn't occur.
Assignee | ||
Comment 4•18 years ago
|
||
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
Assignee | ||
Updated•18 years ago
|
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)
Assignee | ||
Comment 5•18 years ago
|
||
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.
Assignee | ||
Comment 7•18 years ago
|
||
I found the way for fix this bug. I'll create the patch.
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → masayuki
Assignee | ||
Comment 8•18 years ago
|
||
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.
Assignee | ||
Comment 9•18 years ago
|
||
Attachment #232296 -
Attachment is obsolete: true
Assignee | ||
Comment 10•18 years ago
|
||
Assignee | ||
Comment 11•18 years ago
|
||
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)
Reporter | ||
Comment 12•18 years ago
|
||
Regression range for this bug is:
2006-06-09-04 | 2006-06-10-05
maybe bug 340590 is the cause for this bug?
Assignee | ||
Comment 13•18 years ago
|
||
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)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•18 years ago
|
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)
Assignee | ||
Comment 14•18 years ago
|
||
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.
Assignee | ||
Comment 16•17 years ago
|
||
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.
Reporter | ||
Comment 17•17 years ago
|
||
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
Assignee | ||
Comment 18•17 years ago
|
||
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.
Description
•