Home | History | Annotate | Download | only in core

Lines Matching defs:current

231         SkFontStyle current;
232 this->getStyle(i, &current, nullptr);
238 if (current.width() <= pattern.width()) {
239 currentScore += 10 - pattern.width() + current.width();
241 currentScore += 10 - current.width();
244 if (current.width() > pattern.width()) {
245 currentScore += 10 + pattern.width() - current.width();
247 currentScore += current.width();
259 0 <= current.slant() && current.slant() <= 2);
261 /* Upright Italic Oblique [current]*/
267 currentScore += score[pattern.slant()][current.slant()];
275 if (pattern.weight() == current.weight()) {
279 if (450 <= current.weight() && current.weight() <= 500) {
285 if (current.weight() <= pattern.weight()) {
286 currentScore += 1000 - pattern.weight() + current.weight();
288 currentScore += 1000 - current.weight();
291 if (current.weight() > pattern.weight()) {
292 currentScore += 1000 + pattern.weight() - current.weight();
294 currentScore += current.weight();