[ros-bugs] [Bug 3481] Firefox 3 - Page content text misaligned

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sat Dec 19 12:32:01 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=3481





--- Comment #33 from gabrielilardi <gabrielilardi at hotmail.it>  2009-12-19 12:32:00 CET ---
More info from:
http://www.reactos.org/forum/viewtopic.php?f=2&t=7770&start=15#p67915

Firefox 3 was a problem for the developer of SmoothText, too. It's a program
for Win2k that smooths fonts sort of like ClearType. From digging through the
source, it looks like he had to deal with some issues:

- when dealing with character widths from ExtTextOut

Code: Select all
    // Firefox 3 likes to put 0 as the last extent (and CorelDraw likes to put
something too small
          // as the last extent), so make sure it's at least as wide as the
last character

Not sure what he was doing here, maybe trying to figure out how much room the
text takes up, but Firefox does something with the window origin

Code: Select all
            // The buffer will encompass the smallest area given, but also
bounded to the screen
            // Don't try to take the window origin into account, because
Firefox 3.5 does some screwy
            // things with it and we wind up with empty surfaces (it uses
negative Y values)

            If (Align and TA_CENTER) = TA_CENTER
             Then R.Left :=
{Min(ScreenW,Max(0,}Min(TextRect.Left,Rect0.Left){))}
             Else R.Left :=
{Min(ScreenW,Max(0,}Max(TextRect.Left,Rect0.Left){))};
    //        R.Top    :=
Min(ScreenH,Max(WindowOrg.Y,Max(TextRect.Top,Rect0.Top)));
            R.Top    := Min(ScreenH,Max(TextRect.Top,Rect0.Top));
            If (Align And TA_RIGHT) = 0
             Then R.Right :=
{Min(ScreenW,Max(0,}Min(TextRect.Right,Rect0.Right){))}
             Else R.Right :=
{Min(ScreenW,Max(0,}Max(TextRect.Right,Rect0.Right){))};
    //        R.Bottom :=
Min(ScreenH,Max(WindowOrg.Y,Min(TextRect.Bottom,Rect0.Bottom)));
            R.Bottom := Min(ScreenH,Min(TextRect.Bottom,Rect0.Bottom));

In his handler for MyGetTextExtentExPointI he has this:

Code: Select all
    // Firefox 3 likes to send a pointer to alpDX while sending Nil as the
pointer to the fit-count,
              // so we have to have our own fit-count and push it out to the
caller if a valid pointer was given


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Ros-bugs mailing list