Closed Bug 285148 Opened 20 years ago Closed 18 years ago

[Win2000 Only] the wrapped text disappear

Categories

(Core Graveyard :: GFX: Win32, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: masayuki, Unassigned)

Details

Attachments

(4 files)

This bug is reproduced while following conditions are complete.

1. This bug is reproduced on only Windows2000.
   On WinXP, it is not reproduced.

2. this bug is reproduced when the font is 'MS PMincho' or 'MS PGothic'.

3. The minimum, three lines are necessity.

4. The first character of third line is any char, and 2nd charachter and more are 
   independent element.
Attached file testcase2
Oops.
It is reproduced with the font is "Roman" or "Modern" too.
1) Is the text still hidden when you attempt to select it?
2) Do you see the bug even if your locale is English?

On my Win2K-English, everything works fine.
(In reply to comment #5)
> 1) Is the text still hidden when you attempt to select it?
Yes. Still hidden.

> 2) Do you see the bug even if your locale is English?
My locale is JA.
I tested Win2k-JA, WinMe-JA, WinXP-JA.
It is reproduced on Win2k-JA only.

Reproducible on Win2K SP4 (Chinese Traditional).
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217
Looks like a bug in the GDI itself. Can you try the change below in
|nsGfxFactoryWin.cpp|,

i.e., substitute |return useAFunctions| with |return 1| in UseAFunctions().

this will force a different (much slower) codepath that we have for cases where
there are bugs in the GDI beyond our control. If this fixes the problem, we will
conclude for sure that it is a bug in the GDI of Win2K-CJK.


Index: nsGfxFactoryWin.cpp
===================================================================
RCS file: /cvsroot/mozilla/gfx/src/windows/nsGfxFactoryWin.cpp,v
retrieving revision 3.37
diff -p -u -r3.37 nsGfxFactoryWin.cpp
--- nsGfxFactoryWin.cpp 17 Apr 2004 21:52:32 -0000      3.37
+++ nsGfxFactoryWin.cpp 8 Mar 2005 07:43:10 -0000
@@ -94,7 +94,7 @@ UseAFunctions()
     }
   }

-  return useAFunctions;
+  return 1; //useAFunctions;
 }

 static NS_IMETHODIMP
(In reply to comment #6)

> > 2) Do you see the bug even if your locale is English?
> My locale is JA.
> I tested Win2k-JA, WinMe-JA, WinXP-JA.
> It is reproduced on Win2k-JA only.

You can switch your locale to English or any locale supported by Win 2k in the
control panel. Does it make any difference? I'll test it myself later...
(In reply to comment #8)
> Looks like a bug in the GDI itself. Can you try the change below in
> |nsGfxFactoryWin.cpp|,
> 
> i.e., substitute |return useAFunctions| with |return 1| in UseAFunctions().

I cannot reproduce by this way.
(In reply to comment #9)
> You can switch your locale to English or any locale supported by Win 2k in the
> control panel. Does it make any difference? I'll test it myself later...
> 
I cannot reproduce the problem after switching my locale to English.
So is this GDI bug something we can/should work around somehow?
Assignee: nobody → win32
Component: Layout: Fonts and Text → GFX: Win32
QA Contact: layout.fonts-and-text → ian
We don't have this bug in thebes.

-> WFM.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: