1 /*
2 close_font -- free font structure
3 Copyright (C) 1998, 1999 Dieter Baron
4
5 This file is part of ttftot42, to use TrueType fonts in PostScript.
6 The author can be contacted at <dillo@giga.or.at>
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23
24
25 #include <stdlib.h>
26 #include <string.h>
27 #include <limits.h>
28
29 #include <ftxpost.h>
30 #include <ftxerr18.h>
31
32 #include "t42.h"
33
34 void
close_font(font * f)35 close_font(font *f)
36 {
37 free(f->version);
38 free(f->tt_version);
39 free(f->notice);
40 free(f->full_name);
41 free(f->family_name);
42 free(f->weight);
43 free(f->italic_angle);
44 free(f->font_name);
45
46 TT_Close_Face(f->face);
47
48 return;
49 }
50