4 * Copyright (C) 2014 by Werner Lemberg.
6 * This file is part of the ttfautohint library, and may only be used,
7 * modified, and distributed under the terms given in `COPYING'. By
8 * continuing to use, modify, or distribute this file you indicate that you
9 * have read `COPYING' and understand and accept it fully.
11 * The file `COPYING' mentioned in the previous paragraph is distributed
12 * with the ttfautohint library.
20 TA_table_build_TTFA(FT_Byte
** TTFA
,
32 buf
= (FT_Byte
*)TA_font_dump_parameters(font
, 0);
34 return FT_Err_Out_Of_Memory
;
35 buf_len
= strlen((char*)buf
);
37 /* buffer length must be a multiple of four */
38 len
= (buf_len
+ 3) & ~3;
39 buf_new
= (FT_Byte
*)realloc(buf
, len
);
43 return FT_Err_Out_Of_Memory
;
47 /* pad end of buffer with zeros */