• Home
  • Raw
  • Download

Lines Matching +full:clean +full:- +full:css

86 …return SkVector::Make(fAdvance.fX, fFontMetrics.fDescent - fFontMetrics.fAscent + fFontMetrics.fLe…  in advance()
130 auto ascent = ascentStyle == LineMetricStyle::Typographic ? this->ascent() in calculateHeight()
131 : this->correctAscent(); in calculateHeight()
132 auto descent = descentStyle == LineMetricStyle::Typographic ? this->descent() in calculateHeight()
133 : this->correctDescent(); in calculateHeight()
134 return descent - ascent; in calculateHeight()
223 size_t cluster = this->clusterIndex(start); in iterateThroughClustersInTextOrder()
224 for (size_t glyph = 1; glyph <= this->size(); ++glyph) { in iterateThroughClustersInTextOrder()
225 auto nextCluster = this->clusterIndex(glyph); in iterateThroughClustersInTextOrder()
234 this->calculateWidth(start, glyph, glyph == size()), in iterateThroughClustersInTextOrder()
235 this->calculateHeight(LineMetricStyle::CSS, LineMetricStyle::CSS)); in iterateThroughClustersInTextOrder()
241 size_t glyph = this->size(); in iterateThroughClustersInTextOrder()
242 size_t cluster = this->fUtf8Range.begin(); in iterateThroughClustersInTextOrder()
243 for (int32_t start = this->size() - 1; start >= 0; --start) { in iterateThroughClustersInTextOrder()
245 start == 0 ? this->fUtf8Range.end() : this->clusterIndex(start - 1); in iterateThroughClustersInTextOrder()
254 this->calculateWidth(start, glyph, glyph == 0), in iterateThroughClustersInTextOrder()
255 this->calculateHeight(LineMetricStyle::CSS, LineMetricStyle::CSS)); in iterateThroughClustersInTextOrder()
320 size_t size() const { return fEnd - fStart; } in size()
371 clean(); in InternalLineMetrics()
376 clean(); in InternalLineMetrics()
416 fAscent = std::min(fAscent, run->correctAscent()); in add()
417 fDescent = std::max(fDescent, run->correctDescent()); in add()
418 fLeading = std::max(fLeading, run->correctLeading()); in add()
420 fRawAscent = std::min(fRawAscent, run->ascent()); in add()
421 fRawDescent = std::max(fRawDescent, run->descent()); in add()
422 fRawLeading = std::max(fRawLeading, run->leading()); in add()
434 void clean() { in clean() function
452 SkScalar delta() const { return height() - ideographicBaseline(); } in delta()
464 metrics.fAscent = std::min(metrics.fAscent, fAscent - fLeading / 2.0f); in updateLineMetrics()
466 metrics.fRawAscent = std::min(metrics.fRawAscent, fRawAscent - fRawLeading / 2.0f); in updateLineMetrics()
472 return fLeading / 2 - fAscent + in runTop()
473 … (ascentStyle == LineMetricStyle::Typographic ? run->ascent() : run->correctAscent()) + delta(); in runTop()
477 return ::round((double)fDescent - fAscent + fLeading); in height()
491 SkScalar alphabeticBaseline() const { return fLeading / 2 - fAscent; } in alphabeticBaseline()
492 SkScalar ideographicBaseline() const { return fDescent - fAscent + fLeading; } in ideographicBaseline()
494 SkScalar baseline() const { return fLeading / 2 - fAscent; } in baseline()