Commit eefb7df5 authored by pavlov%pavlov.net's avatar pavlov%pavlov.net
Browse files

Fixing kerning bug where we added the space we should have been subtracting....

Fixing kerning bug where we added the space we should have been subtracting. bug 327363. r=vlad. based on patch originally from Masayuki Nakano <masayuki@d-toybox.com>
parent c9ff5b4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -572,7 +572,7 @@ TRY_AGAIN_JUST_PLACE:
                printf("error ScriptPlacing\n");

            if (!aDraw) {
                length += NSToCoordRound((abs(abc.abcA) + abc.abcB + abs(abc.abcC)) * cairoToPixels);
                length += NSToCoordRound((abc.abcA + abc.abcB + abc.abcC) * cairoToPixels);
            } else {
                PRInt32 *spacing = 0;
                PRInt32 justTotal = 0;
@@ -678,7 +678,7 @@ TRY_AGAIN_JUST_PLACE:
#endif
                free(cglyphs);

                aX += NSToCoordRound((abs(abc.abcA) + abc.abcB + abs(abc.abcC) + justTotal) * cairoToPixels);
                aX += NSToCoordRound((abc.abcA + abc.abcB + abc.abcC + justTotal) * cairoToPixels);
                free(spacing);
            }
            free(offsets);