Lines Matching defs:shift
32 // unordered_map<familyName, ScaleParam>: compress <familyName> font height, shift font baseline.
273 // If we shift the baseline we need to make sure the shifted text fits the line
370 // In such case we shift the text range to the right
422 SkScalar shift = 0;
424 shift += space / PARAM_TWO;
427 fPositions[i].fX += shift;
429 shift += space;
432 shift -= space / PARAM_TWO;
434 fPositions[this->size()].fX += shift;
435 fAdvance.fX += shift;
436 return shift;
442 SkScalar shift = 0;
444 fPositions[i].fX += shift;
446 shift += space;
450 fPositions[cluster->endPos()].fX += shift;
454 fAdvance.fX += shift;
456 cluster->space(shift);
459 return shift;
464 SkScalar shift = 0;
466 fPositions[i].fX += shift;
467 shift += space;
471 fPositions[cluster->endPos()].fX += shift;
474 fAdvance.fX += shift;
476 cluster->space(shift);
479 return shift;
483 void Run::shift(const Cluster* cluster, SkScalar offset) {
568 auto shift = ch - fTextRange.start;
569 auto ratio = shift * 1.0 / fTextRange.width();
578 auto shift = fTextRange.end - ch - 1;
579 auto ratio = shift * 1.0 / fTextRange.width();
591 // We don't have to take in account cluster shift since it's the same for 0 and for pos