Home | History | Annotate | Download | only in api

Lines Matching refs:glyph

185   hb_codepoint_t glyph;
189 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
190 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo not available
194 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
195 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo empty
199 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
200 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathItalicsCorrectionInfo empty
204 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
205 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // Glyph without italic correction.
206 g_assert(hb_font_get_glyph_from_name (hb_font, "A", -1, &glyph));
207 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 394);
208 g_assert(hb_font_get_glyph_from_name (hb_font, "B", -1, &glyph));
209 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 300);
210 g_assert(hb_font_get_glyph_from_name (hb_font, "C", -1, &glyph));
211 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 904);
220 hb_codepoint_t glyph;
224 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
225 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 1000); // MathGlyphInfo not available
229 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
230 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 1000); // MathGlyphInfo empty
234 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
235 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 1000); // MathTopAccentAttachment empty
239 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
240 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 1000); // Glyph without top accent attachment.
241 g_assert(hb_font_get_glyph_from_name (hb_font, "D", -1, &glyph));
242 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 748);
243 g_assert(hb_font_get_glyph_from_name (hb_font, "E", -1, &glyph));
244 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 692);
245 g_assert(hb_font_get_glyph_from_name (hb_font, "F", -1, &glyph));
246 g_assert_cmpint(hb_ot_math_get_glyph_top_accent_attachment (hb_font, glyph), ==, 636);
255 hb_codepoint_t glyph;
259 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
260 g_assert(!hb_ot_math_is_glyph_extended_shape (hb_face, glyph)); // MathGlyphInfo not available
264 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
265 g_assert(!hb_ot_math_is_glyph_extended_shape (hb_face, glyph)); // MathGlyphInfo empty
269 g_assert(hb_font_get_glyph_from_name (hb_font, "G", -1, &glyph));
270 g_assert(!hb_ot_math_is_glyph_extended_shape (hb_face, glyph));
271 g_assert(hb_font_get_glyph_from_name (hb_font, "H", -1, &glyph));
272 g_assert(hb_ot_math_is_glyph_extended_shape (hb_face, glyph));
281 hb_codepoint_t glyph;
285 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
286 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 0), ==, 0); // MathGlyphInfo not available
287 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_LEFT, 0), ==, 0); // MathGlyphInfo not available
288 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_RIGHT, 0), ==, 0); // MathGlyphInfo not available
289 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_LEFT, 0), ==, 0); // MathGlyphInfo not available
293 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
294 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 0), ==, 0); // MathKernInfo empty
295 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_LEFT, 0), ==, 0); // MathKernInfo empty
296 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_RIGHT, 0), ==, 0); // MathKernInfo empty
297 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_LEFT, 0), ==, 0); // MathKernInfo empty
301 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
302 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 0), ==, 0); // MathKernInfoRecords empty
303 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_LEFT, 0), ==, 0); // MathKernInfoRecords empty
304 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_RIGHT, 0), ==, 0); // MathKernInfoRecords empty
305 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_LEFT, 0), ==, 0); // MathKernInfoRecords empty
309 g_assert(hb_font_get_glyph_from_name (hb_font, "I", -1, &glyph));
311 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 7), ==, 62); // lower than min heigth
312 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 14), ==, 62); // equal to min height
313 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 20), ==, 104);
314 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 23), ==, 104);
315 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph
316 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 32), ==, 146);
317 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 86), ==, 398); // equal to max height
318 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 91), ==, 440); // larger than max height
319 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 96), ==, 440); // larger than max height
321 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_RIGHT, 39), ==, 188); // top right
322 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_TOP_LEFT, 39), ==, 110); // top left
323 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_RIGHT, 39), ==, 44); // bottom right
324 g_assert_cmpint(hb_ot_math_get_glyph_kerning (hb_font, glyph, HB_OT_MATH_KERN_BOTTOM_LEFT, 39), ==, 100); // bottom left
334 hb_codepoint_t glyph,
338 hb_ot_math_get_glyph_assembly (font, glyph,
348 hb_codepoint_t glyph;
352 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
353 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0); // MathVariants not available
354 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0); // MathVariants not available
358 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
359 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0); // VertGlyphCoverage and HorizGlyphCoverage absent
360 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0); // VertGlyphCoverage and HorizGlyphCoverage absent
364 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
365 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0); // VertGlyphCoverage and HorizGlyphCoverage empty
366 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0); // VertGlyphCoverage and HorizGlyphCoverage empty
370 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
371 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0); // HorizGlyphConstruction and VertGlyphConstruction empty
372 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0); // HorizGlyphConstruction and VertGlyphConstruction empty
376 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
377 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0);
378 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0);
382 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowleft", -1, &glyph));
383 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 248);
384 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 0);
385 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowup", -1, &glyph));
386 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, TRUE), ==, 0);
387 g_assert_cmpint(get_glyph_assembly_italics_correction (hb_font, glyph, FALSE), ==, 662);
414 hb_codepoint_t glyph;
423 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
424 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL), ==, 0);
425 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL), ==, 0);
429 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
430 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL), ==, 0);
431 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL), ==, 0);
435 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
436 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL), ==, 0);
437 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL), ==, 0);
441 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
442 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL), ==, 0);
443 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL), ==, 0);
447 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
448 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL), ==, 0);
449 g_assert_cmpint(hb_ot_math_get_glyph_variants (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL), ==, 0);
454 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowleft", -1, &glyph));
456 glyph,
462 glyph,
468 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowup", -1, &glyph));
470 glyph,
476 glyph,
482 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowleft", -1, &glyph));
486 glyph,
494 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2190_size2", -1, &glyph));
495 g_assert_cmpint(variants[0].glyph, ==, glyph);
497 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2190_size3", -1, &glyph));
498 g_assert_cmpint(variants[1].glyph, ==, glyph);
500 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2190_size4", -1, &glyph));
501 g_assert_cmpint(variants[2].glyph, ==, glyph);
504 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowup", -1, &glyph));
509 glyph,
517 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2191_size2", -1, &glyph));
518 g_assert_cmpint(variants[0].glyph, ==, glyph);
520 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2191_size3", -1, &glyph));
521 g_assert_cmpint(variants[1].glyph, ==, glyph);
523 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2191_size4", -1, &glyph));
524 g_assert_cmpint(variants[2].glyph, ==, glyph);
526 g_assert(hb_font_get_glyph_from_name (hb_font, "uni2191_size5", -1, &glyph));
527 g_assert_cmpint(variants[3].glyph, ==, glyph);
538 hb_codepoint_t glyph;
547 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
548 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL, NULL), ==, 0);
549 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL, NULL), ==, 0);
553 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
554 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL, NULL), ==, 0);
555 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL, NULL), ==, 0);
559 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
560 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL, NULL), ==, 0);
561 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL, NULL), ==, 0);
565 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
566 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL, NULL), ==, 0);
567 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL, NULL), ==, 0);
571 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph));
572 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_RTL, 0, NULL, NULL, NULL), ==, 0);
573 g_assert_cmpint(hb_ot_math_get_glyph_assembly (hb_font, glyph, HB_DIRECTION_BTT, 0, NULL, NULL, NULL), ==, 0);
578 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowright", -1, &glyph));
580 glyph,
587 glyph,
594 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowdown", -1, &glyph));
596 glyph,
603 glyph,
610 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowright", -1, &glyph));
614 glyph,
623 g_assert(hb_font_get_glyph_from_name (hb_font, "left", -1, &glyph));
624 g_assert_cmpint(parts[0].glyph, ==, glyph);
629 g_assert(hb_font_get_glyph_from_name (hb_font, "horizontal", -1, &glyph));
630 g_assert_cmpint(parts[1].glyph, ==, glyph);
635 g_assert(hb_font_get_glyph_from_name (hb_font, "right", -1, &glyph));
636 g_assert_cmpint(parts[2].glyph, ==, glyph);
642 g_assert(hb_font_get_glyph_from_name (hb_font, "arrowdown", -1, &glyph));
647 glyph,
656 g_assert(hb_font_get_glyph_from_name (hb_font, "bottom", -1, &glyph));
657 g_assert_cmpint(parts[0].glyph, ==, glyph);
662 g_assert(hb_font_get_glyph_from_name (hb_font, "vertical", -1, &glyph));
663 g_assert_cmpint(parts[1].glyph, ==, glyph);
664 g_assert_cmpint(parts[1].glyph, ==, glyph);
669 g_assert(hb_font_get_glyph_from_name (hb_font, "center", -1, &glyph));
670 g_assert_cmpint(parts[2].glyph, ==, glyph);
675 g_assert(hb_font_get_glyph_from_name (hb_font, "vertical", -1, &glyph));
676 g_assert_cmpint(parts[3].glyph, ==, glyph);
677 g_assert_cmpint(parts[3].glyph, ==, glyph);
678 g_assert_cmpint(parts[3].glyph, ==, glyph);
683 g_assert(hb_font_get_glyph_from_name (hb_font, "top", -1, &glyph));
684 g_assert_cmpint(parts[4].glyph, ==, glyph);