Home | History | Annotate | Download | only in core

Lines Matching refs:pattern

192 * If the value of pattern.width is 5 (normal) or less,
194 * If the value of pattern.width is greater than 5 (normal),
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.
215 SkTypeface* SkFontStyleSet::matchStyleCSS3(const SkFontStyle& pattern) {
237 if (pattern.width() <= SkFontStyle::kNormal_Width) {
238 if (current.width() <= pattern.width()) {
239 currentScore += 10 - pattern.width() + current.width();
244 if (current.width() > pattern.width()) {
245 currentScore += 10 + pattern.width() - current.width();
258 SkASSERT(0 <= pattern.slant() && pattern.slant() <= 2 &&
265 /* [pattern] */
267 currentScore += score[pattern.slant()][current.slant()];
275 if (pattern.weight() == current.weight()) {
277 } else if (pattern.weight() <= 500) {
278 if (400 <= pattern.weight() && pattern.weight() < 450) {
285 if (current.weight() <= pattern.weight()) {
286 currentScore += 1000 - pattern.weight() + current.weight();
290 } else if (pattern.weight() > 500) {
291 if (current.weight() > pattern.weight()) {
292 currentScore += 1000 + pattern.weight() - current.weight();