Lines Matching full:weight
192 * If pattern.weight < 400, weights below pattern.weight are checked
193 * in descending order followed by weights above pattern.weight
195 * If pattern.weight > 500, weights above pattern.weight are checked
196 * in ascending order followed by weights below pattern.weight
198 * If pattern.weight is 400, 500 is checked first
199 * and then the rule for pattern.weight < 400 is used.
200 * If pattern.weight is 500, 400 is checked first
201 * and then the rule for pattern.weight < 400 is used.
258 // Synthetics (weight, style) [no stretch synthetic?] in matchStyleCSS3()
260 // CSS weight / SkFontStyle::Weight in matchStyleCSS3()
261 // The 'closer' to the target weight, the higher the score. in matchStyleCSS3()
262 // 1000 is the 'heaviest' recognized weight in matchStyleCSS3()
263 if (pattern.weight() == current.weight()) { in matchStyleCSS3()
266 } else if (pattern.weight() < 400) { in matchStyleCSS3()
267 if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
268 currentScore += 1000 - pattern.weight() + current.weight(); in matchStyleCSS3()
270 currentScore += 1000 - current.weight(); in matchStyleCSS3()
273 } else if (pattern.weight() <= 500) { in matchStyleCSS3()
274 if (current.weight() >= pattern.weight() && current.weight() <= 500) { in matchStyleCSS3()
275 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
276 } else if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
277 currentScore += 500 + current.weight(); in matchStyleCSS3()
279 currentScore += 1000 - current.weight(); in matchStyleCSS3()
282 } else if (pattern.weight() > 500) { in matchStyleCSS3()
283 if (current.weight() > pattern.weight()) { in matchStyleCSS3()
284 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
286 currentScore += current.weight(); in matchStyleCSS3()