diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-06 09:34:53 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-06 09:34:53 +0000 |
commit | b7b8d6da07309da4e16397f662a4e2db46c0869a (patch) | |
tree | a76a982bef0844f6d3d0eeb7089a7e8a5dfb2ee0 /src/exceptions | |
parent | 4e50ab6291dc2430ef9ce4cc42c100c021e1a3b0 (diff) | |
download | zetacomponents-graph-b7b8d6da07309da4e16397f662a4e2db46c0869a.zip zetacomponents-graph-b7b8d6da07309da4e16397f662a4e2db46c0869a.tar.gz |
- Enhanced font configuration
- Use Free Type 2 by default now, fallback to native ttf, if not available
- Use t1lib for PostScript Type1 fonts
- Throw an exception, if some texts could not be rendered with minimum font
size
Diffstat (limited to 'src/exceptions')
-rw-r--r-- | src/exceptions/font_rendering.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/exceptions/font_rendering.php b/src/exceptions/font_rendering.php new file mode 100644 index 0000000..7bebe2a --- /dev/null +++ b/src/exceptions/font_rendering.php @@ -0,0 +1,25 @@ +<?php +/** + * File containing the ezcGraphFontRenderingException class + * + * @package Graph + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception thrown when it is not possible to render a string beacause of + * minimum font size in the desinated bounding box. + * + * @package Graph + * @version //autogen// + */ +class ezcGraphFontRenderingException extends ezcGraphException +{ + public function __construct( $string, $size, $width, $height ) + { + parent::__construct( "Could not fit string <{$string}> with font size <{$size}> in box <{$width} * {$height}>." ); + } +} + +?> |