changing font weight to step counter of 1 (vs 101)
git-svn-id: svn://10.0.0.236/trunk@46717 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fcf2fe4d3a
commit
24432daa31
@ -1726,7 +1726,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet)
|
||||
int weightIndex;
|
||||
if (steps) {
|
||||
if (steps < 10) {
|
||||
int base = (weight - (steps * 101));
|
||||
int base = (weight - steps);
|
||||
GET_WEIGHT_INDEX(weightIndex, base);
|
||||
while (steps--) {
|
||||
nsFontWeight* prev = weights[weightIndex];
|
||||
@ -1742,7 +1742,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet)
|
||||
}
|
||||
else if (steps > 90) {
|
||||
steps = (100 - steps);
|
||||
int base = (weight + (steps * 101));
|
||||
int base = (weight + steps);
|
||||
GET_WEIGHT_INDEX(weightIndex, base);
|
||||
while (steps--) {
|
||||
nsFontWeight* prev = weights[weightIndex];
|
||||
|
||||
@ -1631,7 +1631,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet)
|
||||
int weightIndex;
|
||||
if (steps) {
|
||||
if (steps < 10) {
|
||||
int base = (weight - (steps * 101));
|
||||
int base = (weight - steps);
|
||||
GET_WEIGHT_INDEX(weightIndex, base);
|
||||
while (steps--) {
|
||||
nsFontWeight* prev = weights[weightIndex];
|
||||
@ -1647,7 +1647,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet)
|
||||
}
|
||||
else if (steps > 90) {
|
||||
steps = (100 - steps);
|
||||
int base = (weight + (steps * 101));
|
||||
int base = (weight + steps);
|
||||
GET_WEIGHT_INDEX(weightIndex, base);
|
||||
while (steps--) {
|
||||
nsFontWeight* prev = weights[weightIndex];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user