Lines Matching defs:glyphs
32 uint16_t glyphs[5];
33 sk_bzero(glyphs, sizeof(glyphs));
35 // Check that no glyphs are copied with insufficient storage.
36 int count = font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, 2);
38 for (const auto glyph : glyphs) { REPORTER_ASSERT(reporter, glyph == 0); }
40 SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs,
41 SK_ARRAY_COUNT(glyphs)) == count);
44 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
46 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
47 REPORTER_ASSERT(reporter, glyphs[2] == glyphs[3]); // 'l' == 'l'
145 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override {
146 sk_bzero(glyphs, count * sizeof(glyphs[0]));