[ttfautohintGUI] Fix tooltip for control instructions file button.
[ttfautohint.git] / lib / tadsig.c
blob8d6eb8c388fb5a088b8d731bf63b2426c6d02b68
1 /* tadsig.c */
3 /*
4 * Copyright (C) 2011-2017 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 */