Anurag Thakur pushed to branch gsoc-anurag-2022 at FreeType / FreeType
Commits:
-
08e08f59
by Anurag Thakur at 2022-10-19T02:18:04+05:30
1 changed file:
Changes:
... | ... | @@ -75,6 +75,15 @@ take a variable named `memory`. It can only be known if you follow the macros 3 |
75 | 75 | goto Exit;
|
76 | 76 | }
|
77 | 77 | |
78 | + /* check mode */
|
|
79 | + if ( mode != FT_RENDER_MODE_NORMAL &&
|
|
80 | + mode != FT_RENDER_MODE_LIGHT &&
|
|
81 | + mode != FT_RENDER_MODE_LCD &&
|
|
82 | + mode != FT_RENDER_MODE_LCD_V )
|
|
83 | + {
|
|
84 | + error = FT_THROW( Cannot_Render_Glyph );
|
|
85 | + goto Exit;
|
|
86 | + }
|
|
78 | 87 | |
79 | 88 | /* deallocate the previously allocated bitmap */
|
80 | 89 | if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
|