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_New( &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 << 6;
129 cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 );
130 cbox->yMax = glyph->top << 6;
131 cbox->yMin = cbox->yMax - ( glyph->bitmap.rows << 6 );
161 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
163 FT_Library library = FT_GLYPH( glyph )->library;
165 FT_Outline* target = &glyph->outline;
168 /* check format in glyph slot */
177 &glyph->outline );
191 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
194 FT_Outline_Done( FT_GLYPH( glyph )->library, &glyph->outline );
222 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
226 FT_Outline_Transform( &glyph->outline, matrix );
229 FT_Outline_Translate( &glyph->outline, delta->x, delta->y );
237 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
240 FT_Outline_Get_CBox( &glyph->outline, bbox );
248 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
252 slot->outline = glyph->outline;
287 FT_Glyph glyph = NULL;
292 if ( !FT_ALLOC( glyph, clazz->glyph_size ) )
294 glyph->library = library;
295 glyph->clazz = clazz;
296 glyph->format = clazz->glyph_format;
298 *aglyph = glyph;
360 FT_Glyph glyph;
383 /* try to find a renderer that supports the glyph image format */
398 error = ft_new_glyph( library, clazz, &glyph );
403 glyph->advance.x = slot->advance.x << 10;
404 glyph->advance.y = slot->advance.y << 10;
406 /* now import the image from the glyph slot */
407 error = clazz->glyph_init( glyph, slot );
409 /* if an error occurred, destroy the glyph */
411 FT_Done_Glyph( glyph );
413 *aglyph = glyph;
423 FT_Glyph_Transform( FT_Glyph glyph,
430 if ( !glyph || !glyph->clazz )
434 const FT_Glyph_Class* clazz = glyph->clazz;
439 /* transform glyph image */
440 clazz->glyph_transform( glyph, matrix, delta );
444 FT_Vector_Transform( &glyph->advance, matrix );
456 FT_Glyph_Get_CBox( FT_Glyph glyph,
468 if ( !glyph || !glyph->clazz )
471 clazz = glyph->clazz;
476 clazz->glyph_bbox( glyph, acbox );
511 FT_Glyph b, glyph;
522 glyph = *the_glyph;
523 if ( !glyph )
526 clazz = glyph->clazz;
527 library = glyph->library;
531 /* when called with a bitmap glyph, do nothing and return successfully */
538 /* we render the glyph into a glyph bitmap using a `dummy' glyph slot */
547 /* create result bitmap glyph */
554 /* if `origin' is set, translate the glyph image */
556 FT_Glyph_Transform( glyph, 0, origin );
562 error = clazz->glyph_prepare( glyph, &dummy );
564 glyph->library, &dummy, render_mode );
574 FT_Glyph_Transform( glyph, 0, &v );
581 /* in case of success, copy the bitmap to the glyph bitmap */
587 bitmap->root.advance = glyph->advance;
590 FT_Done_Glyph( glyph );
609 FT_Done_Glyph( FT_Glyph glyph )
611 if ( glyph )
613 FT_Memory memory = glyph->library->memory;
614 const FT_Glyph_Class* clazz = glyph->clazz;
618 clazz->glyph_done( glyph );
620 FT_FREE( glyph );