Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
a0fb6dbc
by Alexei Podtelezhnikov at 2021-04-23T00:05:18-04:00
4 changed files:
Changes:
1 |
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
2 |
+ |
|
3 |
+ [pcf,bdf,winfonts] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
|
|
4 |
+ |
|
5 |
+ * src/pcf/pcfread.c (pcf_interpret_style): Do not zero out the buffer.
|
|
6 |
+ * src/bdf/bdfdrivr.c (bdf_interpret_style): Ditto.
|
|
7 |
+ * src/winfonts/winfnt.c (FNT_Face_Init, FNT_Load_Glyph): Ditto.
|
|
8 |
+ |
|
1 | 9 |
2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2 | 10 |
|
3 | 11 |
[cache] Optimize SBit copying.
|
... | ... | @@ -276,7 +276,7 @@ THE SOFTWARE. |
276 | 276 |
char* s;
|
277 | 277 |
|
278 | 278 |
|
279 |
- if ( FT_ALLOC( face->style_name, len ) )
|
|
279 |
+ if ( FT_QALLOC( face->style_name, len ) )
|
|
280 | 280 |
return error;
|
281 | 281 |
|
282 | 282 |
s = face->style_name;
|
... | ... | @@ -1368,7 +1368,7 @@ THE SOFTWARE. |
1368 | 1368 |
char* s;
|
1369 | 1369 |
|
1370 | 1370 |
|
1371 |
- if ( FT_ALLOC( face->style_name, len ) )
|
|
1371 |
+ if ( FT_QALLOC( face->style_name, len ) )
|
|
1372 | 1372 |
return error;
|
1373 | 1373 |
|
1374 | 1374 |
s = face->style_name;
|
... | ... | @@ -888,7 +888,7 @@ |
888 | 888 |
/* NULL byte -- the frame is erroneously one byte too small. */
|
889 | 889 |
/* We thus allocate one more byte, setting it explicitly to */
|
890 | 890 |
/* zero. */
|
891 |
- if ( FT_ALLOC( font->family_name, family_size + 1 ) )
|
|
891 |
+ if ( FT_QALLOC( font->family_name, family_size + 1 ) )
|
|
892 | 892 |
goto Fail;
|
893 | 893 |
|
894 | 894 |
FT_MEM_COPY( font->family_name,
|
... | ... | @@ -1094,7 +1094,7 @@ |
1094 | 1094 |
|
1095 | 1095 |
/* note: since glyphs are stored in columns and not in rows we */
|
1096 | 1096 |
/* can't use ft_glyphslot_set_bitmap */
|
1097 |
- if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) )
|
|
1097 |
+ if ( FT_QALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) )
|
|
1098 | 1098 |
goto Exit;
|
1099 | 1099 |
|
1100 | 1100 |
column = (FT_Byte*)bitmap->buffer;
|