mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
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>
This commit is contained in:
parent
c9ff5b4a4c
commit
eefb7df572
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user