Lines Matching refs:size

23 // 1px font size "HarmonyOS Sans" metrics
33 // target font size = font size * ScaleParam.scale.
34 // target baseline = baseline - height * font size * ScaleParam.baselineShiftScale.
59 // symbol: need to ensure "the symbol height = the font size".
95 return std::string(familyName.c_str(), familyName.size());
283 void Run::copyTo(SkTextBlobBuilder& builder, size_t pos, size_t size) const {
284 SkASSERT(pos + size <= this->size());
285 const auto& blobBuffer = builder.allocRunPos(fFont, SkToInt(size));
286 sk_careful_memcpy(blobBuffer.glyphs, fGlyphs.data() + pos, size * sizeof(SkGlyphID));
288 for (size_t i = 0; i < size; ++i) {
301 void Run::copyTo(RSTextBlobBuilder& builder, size_t pos, size_t size) const {
302 SkASSERT(pos + size <= this->size());
303 const auto& blobBuffer = builder.AllocRunPos(fFont, SkToInt(size));
304 sk_careful_memcpy(blobBuffer.glyphs, fGlyphs.data() + pos, size * sizeof(SkGlyphID));
307 for (size_t i = 0; i < size; ++i) {
326 size_t size) const {
327 SkASSERT(pos + size <= this->size());
328 auto& blobBuffer = builder.AllocRunRSXform(fFont, SkToInt(size));
329 sk_careful_memcpy(blobBuffer.glyphs, fGlyphs.data() + pos, size * sizeof(SkGlyphID));
330 std::vector<float> widths(size);
331 fFont.GetWidths(blobBuffer.glyphs, size, widths.data());
333 for (size_t i = 0; i < size; ++i) {
423 if (this->size()) {
426 for (size_t i = 0; i < this->size(); ++i) {
431 if (this->size()) {
434 fPositions[this->size()].fX += shift;
448 if (this->size() == cluster->endPos()) {
469 if (this->size() == cluster->endPos()) {
491 if (this->size() == cluster->endPos()) {
500 for (size_t pos = cluster->endPos(); pos < fPositions.size(); pos++) {
586 return sk_double_floor2int(ratio * size());
603 if (index < fPositions.size()) {
606 LOGE("index:%{public}zu,size:%{public}zu", index, fPositions.size());
610 return fPositions[fPositions.size() - 1].fX;
631 if (fRunIndex >= fOwner->runs().size()) {
638 SkASSERT(fRunIndex < fOwner->runs().size());
647 SkASSERT(fRunIndex < fOwner->runs().size());