]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - ppdc/ppdc-font.cxx
Don't generate certificates that expire on Feb 29th (Issue #5643)
[thirdparty/cups.git] / ppdc / ppdc-font.cxx
... / ...
CommitLineData
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// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8//
9
10//
11// Include necessary headers...
12//
13
14#include "ppdc-private.h"
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{
28 PPDC_NEW;
29
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{
44 PPDC_DELETE;
45
46 name->release();
47 encoding->release();
48 version->release();
49 charset->release();
50}