]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-font.cxx
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / ppdc / ppdc-font.cxx
CommitLineData
ac884b6a 1//
503b54c9 2// Shared font class for the CUPS PPD Compiler.
ac884b6a 3//
503b54c9
MS
4// Copyright 2007-2009 by Apple Inc.
5// Copyright 2002-2005 by Easy Software Products.
ac884b6a 6//
e3101897 7// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ac884b6a
MS
8//
9
10//
11// Include necessary headers...
12//
13
38e73f87 14#include "ppdc-private.h"
ac884b6a
MS
15
16
17//
18// 'ppdcFont::ppdcFont()' - Create a shared font.
19//
20
21ppdcFont::ppdcFont(const char *n, // I - Name of font
22 const char *e, // I - Font encoding
23 const char *v, // I - Font version
24 const char *c, // I - Font charset
25 ppdcFontStatus s) // I - Font status
26 : ppdcShared()
27{
94da7e34
MS
28 PPDC_NEW;
29
ac884b6a
MS
30 name = new ppdcString(n);
31 encoding = new ppdcString(e);
32 version = new ppdcString(v);
33 charset = new ppdcString(c);
34 status = s;
35}
36
37
38//
39// 'ppdcFont::~ppdcFont()' - Destroy a shared font.
40//
41
42ppdcFont::~ppdcFont()
43{
94da7e34
MS
44 PPDC_DELETE;
45
ac884b6a
MS
46 name->release();
47 encoding->release();
48 version->release();
49 charset->release();
50}