Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
773e31c7
by Alexei Podtelezhnikov at 2022-01-18T14:05:46-05:00
1 changed file:
Changes:
... | ... | @@ -337,11 +337,13 @@ |
337 | 337 |
|
338 | 338 |
/* we allocate an AF_FaceGlobals structure together */
|
339 | 339 |
/* with the glyph_styles array */
|
340 |
- if ( FT_ALLOC( globals,
|
|
341 |
- sizeof ( *globals ) +
|
|
342 |
- (FT_ULong)face->num_glyphs * sizeof ( FT_UShort ) ) )
|
|
340 |
+ if ( FT_QALLOC( globals,
|
|
341 |
+ sizeof ( *globals ) +
|
|
342 |
+ (FT_ULong)face->num_glyphs * sizeof ( FT_UShort ) ) )
|
|
343 | 343 |
goto Exit;
|
344 | 344 |
|
345 |
+ FT_ZERO( &globals->metrics );
|
|
346 |
+ |
|
345 | 347 |
globals->face = face;
|
346 | 348 |
globals->glyph_count = face->num_glyphs;
|
347 | 349 |
/* right after the globals structure come the glyph styles */
|