]> git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-font.cxx
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / ppdc / ppdc-font.cxx
1 //
2 // Shared font class for the CUPS PPD Compiler.
3 //
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
6 //
7 // These coded instructions, statements, and computer programs are the
8 // property of Apple Inc. and are protected by Federal copyright
9 // law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 // which should have been included with this file. If this file is
11 // file is missing or damaged, see the license at "http://www.cups.org/".
12 //
13
14 //
15 // Include necessary headers...
16 //
17
18 #include "ppdc-private.h"
19
20
21 //
22 // 'ppdcFont::ppdcFont()' - Create a shared font.
23 //
24
25 ppdcFont::ppdcFont(const char *n, // I - Name of font
26 const char *e, // I - Font encoding
27 const char *v, // I - Font version
28 const char *c, // I - Font charset
29 ppdcFontStatus s) // I - Font status
30 : ppdcShared()
31 {
32 PPDC_NEW;
33
34 name = new ppdcString(n);
35 encoding = new ppdcString(e);
36 version = new ppdcString(v);
37 charset = new ppdcString(c);
38 status = s;
39 }
40
41
42 //
43 // 'ppdcFont::~ppdcFont()' - Destroy a shared font.
44 //
45
46 ppdcFont::~ppdcFont()
47 {
48 PPDC_DELETE;
49
50 name->release();
51 encoding->release();
52 version->release();
53 charset->release();
54 }