Initialize properties of `globals' object.
[ttfautohint.git] / lib / tadsig.c
blobc5c016c9cd49d49fac9c1c9aaee9e8824448348e
1 /* tadsig.c */
3 /*
4 * Copyright (C) 2011-2012 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.
16 #include "ta.h"
19 /* we build a dummy `DSIG' table only */
21 FT_Error
22 TA_table_build_DSIG(FT_Byte** DSIG)
24 FT_Byte* buf;
27 buf = (FT_Byte*)malloc(DSIG_LEN);
28 if (!buf)
29 return FT_Err_Out_Of_Memory;
31 /* version */
32 buf[0] = 0x00;
33 buf[1] = 0x00;
34 buf[2] = 0x00;
35 buf[3] = 0x01;
37 /* zero signatures */
38 buf[4] = 0x00;
39 buf[5] = 0x00;
41 /* permission flags */
42 buf[6] = 0x00;
43 buf[7] = 0x00;
45 *DSIG = buf;
47 return TA_Err_Ok;
51 /* end of tadsig.c */