Lines Matching defs:cluster

735         uint32_t cluster) {
739 hb_buffer_add(buffer, hyphenChar, cluster);
744 // Returns the cluster value assigned to the first codepoint added to the buffer, which can be used
745 // to translate cluster values returned by HarfBuzz to input indices.
775 // A cluster value of zero guarantees that the inserted hyphen will be in the same
776 // cluster with the next codepoint, since there is no pre-context.
777 addHyphenToHbBuffer(buffer, hbFont, startHyphen, 0 /* cluster value */);
821 // codepoint added to the HarfBuzz buffer to the same cluster, we can make sure
822 // that they always remain in the same cluster, even if the last codepoint gets
823 // merged into another cluster (for example when it's a combining mark).
825 // When a replacement happens instead, we want it to get the cluster value of
827 // the last cluster. But since the character replaced is always just one
835 hyphenCluster = cpInfo[numCodepoints - 1].cluster + (uint32_t) hasEndReplacement;
842 return cpInfo[0].cluster;
954 // At this point in the code, the cluster values in the info buffer correspond to the
955 // input characters with some shift. The cluster value clusterStart corresponds to the
957 // advance needs to be saved into mAdvances[scriptRunStart]. So cluster values need to
964 mAdvances[info[0].cluster - clusterOffset] += letterSpaceHalfLeft;
976 if (i > 0 && info[i - 1].cluster != info[i].cluster) {
977 mAdvances[info[i - 1].cluster - clusterOffset] += letterSpaceHalfRight;
978 mAdvances[info[i].cluster - clusterOffset] += letterSpaceHalfLeft;
1008 if (static_cast<size_t>(info[i].cluster - clusterOffset) < count) {
1009 mAdvances[info[i].cluster - clusterOffset] += xAdvance;
1011 ALOGE("cluster %zu (start %zu) out of bounds of count %zu",
1012 info[i].cluster - clusterOffset, start, count);
1018 mAdvances[info[numGlyphs - 1].cluster - clusterOffset] += letterSpaceHalfRight;