Lines Matching +full:- +full:graphite2
3 #include <hb-wasm-api.h>
5 #include <graphite2/Segment.h>
88 0, // https://github.com/harfbuzz/harfbuzz/issues/3439#issuecomment-1442650148 in shape()
134 clusters[0].advance = gr_seg_advance_X(seg) * xscale - curradv; in shape()
146 clusters[ci-1].num_chars += clusters[ci].num_chars; in shape()
147 clusters[ci-1].num_glyphs += clusters[ci].num_glyphs; in shape()
148 clusters[ci-1].advance += clusters[ci].advance; in shape()
149 ci--; in shape()
155 c->base_char = clusters[ci].base_char + clusters[ci].num_chars; in shape()
156 c->cluster = contents.info[c->base_char].cluster; in shape()
157 c->num_chars = before - c->base_char; in shape()
158 c->base_glyph = ic; in shape()
159 c->num_glyphs = 0; in shape()
162 c->advance = curradv - gr_slot_origin_X(is) * xscale; in shape()
163 curradv -= c->advance; in shape()
168 c->advance = 0; in shape()
169 clusters[ci].advance += origin_X - curradv; in shape()
177 clusters[ci].num_chars = after + 1 - clusters[ci].base_char; in shape()
183 clusters[ci].advance += gr_seg_advance_X(seg) * xscale - curradv; in shape()
191 info->codepoint = gids[clusters[i].base_glyph + j]; in shape()
192 info->cluster = clusters[i].cluster; in shape()
193 … info->var1 = (unsigned) clusters[i].advance; // all glyphs in the cluster get the same advance in shape()
207 pPos->x_offset = gr_slot_origin_X (is) * xscale - curradvx; in shape()
208 pPos->y_offset = gr_slot_origin_Y (is) * yscale - curradvy; in shape()
209 if (info->cluster != currclus) { in shape()
210 pPos->x_advance = (int) info->var1; in shape()
211 curradvx += pPos->x_advance; in shape()
212 currclus = info->cluster; in shape()
214 pPos->x_advance = 0.; in shape()
216 pPos->y_advance = gr_slot_advance_Y (is, grface, nullptr) * yscale; in shape()
217 curradvy += pPos->y_advance; in shape()
226 if (info->cluster != currclus) in shape()
228 pPos->x_advance = (int) info->var1; in shape()
229 curradvx -= pPos->x_advance; in shape()
230 currclus = info->cluster; in shape()
232 pPos->x_advance = 0.; in shape()
234 pPos->y_advance = gr_slot_advance_Y (is, grface, nullptr) * yscale; in shape()
235 curradvy -= pPos->y_advance; in shape()
236 … pPos->x_offset = gr_slot_origin_X (is) * xscale - (int) info->var1 - curradvx + pPos->x_advance; in shape()
237 pPos->y_offset = gr_slot_origin_Y (is) * yscale - curradvy; in shape()