blob: 23d61d93f0b768847955c6aae318b315a805a467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* File containing the ezcGraphInvalidFontTypeException class
*
* @package Graph
* @version //autogen//
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Exception thrown if font type cannot be rendered with one driver.
*
* @package Graph
* @version //autogen//
*/
class ezcGraphInvalidFontTypeException extends ezcGraphException
{
/**
* Constructor
*
* @param int $type
* @param string $driver
* @return void
* @ignore
*/
public function __construct( $type, $driver )
{
$fontNames = array(
ezcGraph::TTF_FONT => 'True Type Font',
ezcGraph::PS_FONT => 'Postscript Type 1 font',
ezcGraph::PALM_FONT => 'Palm Font',
);
$fontName = ( isset( $fontNames[$type] )
? $fontName = $fontNames[$type]
: 'Unknown'
);
parent::__construct( "Font type '{$fontName}' cannot be used with '{$driver}'." );
}
}
?>
|