Lines Matching refs:weight
204 * If pattern.weight < 400, weights below pattern.weight are checked
205 * in descending order followed by weights above pattern.weight
207 * If pattern.weight > 500, weights above pattern.weight are checked
208 * in ascending order followed by weights below pattern.weight
210 * If pattern.weight is 400, 500 is checked first
211 * and then the rule for pattern.weight < 400 is used.
212 * If pattern.weight is 500, 400 is checked first
213 * and then the rule for pattern.weight < 400 is used.
270 // Synthetics (weight, style) [no stretch synthetic?]
272 // CSS weight / SkFontStyle::Weight
273 // The 'closer' to the target weight, the higher the score.
274 // 1000 is the 'heaviest' recognized weight
275 if (pattern.weight() == current.weight()) {
277 } else if (pattern.weight() <= 500) {
278 if (400 <= pattern.weight() && pattern.weight() < 450) {
279 if (450 <= current.weight() && current.weight() <= 500) {
280 // Artificially boost the 500 weight.
285 if (current.weight() <= pattern.weight()) {
286 currentScore += 1000 - pattern.weight() + current.weight();
288 currentScore += 1000 - current.weight();
290 } else if (pattern.weight() > 500) {
291 if (current.weight() > pattern.weight()) {
292 currentScore += 1000 + pattern.weight() - current.weight();
294 currentScore += current.weight();