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