shuttlerc, boobytraps, vwindow hang, lock cleanup
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcfontentry.C
1
2 /*
3  *
4  * Copyright (C) 2014 Einar Rünkaru <einarry at smail dot ee>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #include "bcfontentry.h"
23
24 #include <stdio.h>
25
26
27 BC_FontEntry::BC_FontEntry()
28 {
29         image = 0;
30         displayname = 0;
31         path = 0;
32         foundry = 0;
33         family = 0;
34         weight = 0;
35         slant = 0;
36         swidth = 0;
37         adstyle = 0;
38         spacing = 0;
39         pixelsize = 0;
40         pointsize = 0;
41         xres = 0;
42         yres = 0;
43         style = 0;
44         spacing = 0;
45         avg_width = 0;
46         registry = 0;
47         encoding = 0;
48         fixed_style = 0;
49 }
50
51 BC_FontEntry::~BC_FontEntry()
52 {
53         delete image;
54         delete [] path;
55         delete [] displayname;
56         delete [] foundry;
57         delete [] family;
58         delete [] weight;
59         delete [] slant;
60         delete [] swidth;
61         delete [] adstyle;
62         delete [] spacing;
63         delete [] registry;
64         delete [] encoding;
65 }
66
67 void BC_FontEntry::dump()
68 {
69         printf("%s: %s %s %s %s %s %s %d %d %d %d %s %d %s %s\n",
70                 path, foundry, family, weight, slant, swidth, adstyle, pixelsize,
71                 pointsize, xres, yres, spacing, avg_width, registry, encoding);
72 }
73