Home | History | Annotate | Download | only in base

Lines Matching refs:glyph

21   /*  that can be used by client applications to easily retrieve glyph     */
63 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
65 FT_Library library = FT_GLYPH( glyph )->library;
74 glyph->left = slot->bitmap_left;
75 glyph->top = slot->bitmap_top;
80 glyph->bitmap = slot->bitmap;
85 FT_Bitmap_Init( &glyph->bitmap );
86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap );
113 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
114 FT_Library library = FT_GLYPH( glyph )->library;
117 FT_Bitmap_Done( library, &glyph->bitmap );
125 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
128 cbox->xMin = glyph->left * 64;
129 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width * 64 );
130 cbox->yMax = glyph->top * 64;
131 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows * 64 );
163 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
165 FT_Library library = FT_GLYPH( glyph )->library;
167 FT_Outline* target = &glyph->outline;
170 /* check format in glyph slot */
181 &glyph->outline );
195 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
198 FT_Outline_Done( FT_GLYPH( glyph )->library, &glyph->outline );
228 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
232 FT_Outline_Transform( &glyph->outline, matrix );
235 FT_Outline_Translate( &glyph->outline, delta->x, delta->y );
243 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
246 FT_Outline_Get_CBox( &glyph->outline, bbox );
254 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
258 slot->outline = glyph->outline;
295 FT_Glyph glyph = NULL;
300 if ( !FT_ALLOC( glyph, clazz->glyph_size ) )
302 glyph->library = library;
303 glyph->clazz = clazz;
304 glyph->format = clazz->glyph_format;
306 *aglyph = glyph;
368 FT_Glyph glyph;
391 /* try to find a renderer that supports the glyph image format */
406 error = ft_new_glyph( library, clazz, &glyph );
426 glyph->advance.x = slot->advance.x * 1024;
427 glyph->advance.y = slot->advance.y * 1024;
429 /* now import the image from the glyph slot */
430 error = clazz->glyph_init( glyph, slot );
433 /* if an error occurred, destroy the glyph */
435 FT_Done_Glyph( glyph );
437 *aglyph = glyph;
447 FT_Glyph_Transform( FT_Glyph glyph,
454 if ( !glyph || !glyph->clazz )
458 const FT_Glyph_Class* clazz = glyph->clazz;
463 /* transform glyph image */
464 clazz->glyph_transform( glyph, matrix, delta );
468 FT_Vector_Transform( &glyph->advance, matrix );
480 FT_Glyph_Get_CBox( FT_Glyph glyph,
492 if ( !glyph || !glyph->clazz )
495 clazz = glyph->clazz;
500 clazz->glyph_bbox( glyph, acbox );
535 FT_Glyph b, glyph;
546 glyph = *the_glyph;
547 glyph )
550 clazz = glyph->clazz;
551 library = glyph->library;
555 /* when called with a bitmap glyph, do nothing and return successfully */
562 /* we render the glyph into a glyph bitmap using a `dummy' glyph slot */
571 /* create result bitmap glyph */
578 /* if `origin' is set, translate the glyph image */
580 FT_Glyph_Transform( glyph, 0, origin );
586 error = clazz->glyph_prepare( glyph, &dummy );
588 error = FT_Render_Glyph_Internal( glyph->library, &dummy, render_mode );
598 FT_Glyph_Transform( glyph, 0, &v );
605 /* in case of success, copy the bitmap to the glyph bitmap */
611 bitmap->root.advance = glyph->advance;
614 FT_Done_Glyph( glyph );
633 FT_Done_Glyph( FT_Glyph glyph )
635 if ( glyph )
637 FT_Memory memory = glyph->library->memory;
638 const FT_Glyph_Class* clazz = glyph->clazz;
642 clazz->glyph_done( glyph );
644 FT_FREE( glyph );