Lines Matching refs:glyph

301 		const GlyphInfo& glyph = fGlyphInfos[fGlyphInfos.size() - 1];
302 return glyph.lineIndex;
308 const GlyphInfo& glyph = fGlyphInfos[textOffset];
309 return glyph.lineIndex;
391 const GlyphInfo& glyph = fGlyphInfos[fGlyphInfos.size() - 1];
392 const LineInfo& line = fLineInfos[glyph.lineIndex];
394 x1 = glyph.x + glyph.width;
405 const GlyphInfo& glyph = fGlyphInfos[textOffset];
406 const LineInfo& line = fLineInfos[glyph.lineIndex];
408 x1 = glyph.x;
409 x2 = x1 + glyph.width;
454 const GlyphInfo& glyph = fGlyphInfos[textOffset];
455 float x1 = glyph.x;
459 // x2 is the location at the right bounding box of the glyph
460 float x2 = x1 + glyph.width;
462 // x3 is the location of the next glyph, which may be different from
529 GlyphInfo glyph = fGlyphInfos[i];
531 uint32 charClassification = get_char_classification(glyph.charCode);
533 float advanceX = glyph.width;
539 // if (glyph.charCode == '\t') {
566 if (glyph.charCode == '\n') {
569 glyph.x = x;
570 fGlyphInfos[i] = glyph;
572 fGlyphInfos[i] = glyph;
577 // The current glyph extends outside the width, we need to wrap
590 // Adjust the glyph info to point at the changed buffer
592 glyph = fGlyphInfos[i];
593 advanceX = glyph.width;
601 // * Initialize the max ascent/descent of all preceding glyph infos
627 glyph.x = x;
628 fGlyphInfos[i] = glyph;
668 GlyphInfo glyph = fGlyphInfos[i];
670 if (glyph.lineIndex != lineIndex) {
671 bool lineBreak = glyph.charCode == '\n' || i == glyphCount - 1;
672 lineIndex = glyph.lineIndex;
676 spaceLeft = fWidth - glyph.x;
681 uint32 charClassification = get_char_classification(glyph.charCode);
683 spaceLeft -= glyph.width;
711 spaceLeft += glyph.width;
754 glyph.x += spaceLeft;
756 unsigned classification = get_char_classification(glyph.charCode);
768 float shift = (nextGlyph.x - glyph.x) - glyph.width;
775 fGlyphInfos[i] = glyph;
806 // Fetch glyph spacing information
809 // Append to glyph buffer and convert escapement scale
839 fprintf(stderr, "bad_alloc occurred adding glyph info to a "
859 // Mark line index in glyph
860 GlyphInfo glyph = fGlyphInfos[i];
861 glyph.lineIndex = lineIndex;
862 fGlyphInfos[i] = glyph;
950 const GlyphInfo& glyph = fGlyphInfos[textOffset];
951 const LineInfo& line = fLineInfos[glyph.lineIndex];
953 offset.x += glyph.x;