Lines Matching refs:current
222 SkFontStyle current;
223 this->getStyle(i, ¤t, nullptr);
229 if (current.width() <= pattern.width()) {
230 currentScore += 10 - pattern.width() + current.width();
232 currentScore += 10 - current.width();
235 if (current.width() > pattern.width()) {
236 currentScore += 10 + pattern.width() - current.width();
238 currentScore += current.width();
250 0 <= current.slant() && current.slant() <= 2);
252 /* Upright Italic Oblique [current]*/
258 currentScore += score[pattern.slant()][current.slant()];
266 if (pattern.weight() == current.weight()) {
270 if (current.weight() <= pattern.weight()) {
271 currentScore += 1000 - pattern.weight() + current.weight();
273 currentScore += 1000 - current.weight();
277 if (current.weight() >= pattern.weight() && current.weight() <= 500) {
278 currentScore += 1000 + pattern.weight() - current.weight();
279 } else if (current.weight() <= pattern.weight()) {
280 currentScore += 500 + current.weight();
282 currentScore += 1000 - current.weight();
286 if (current.weight() > pattern.weight()) {
287 currentScore += 1000 + pattern.weight() - current.weight();
289 currentScore += current.weight();