diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-08-18 12:56:10 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-08-18 12:56:10 +0000 |
commit | 5091a24682cf37af25eebd4158a0d9480aea6252 (patch) | |
tree | d4998b172a75d207daed201225a988912485e5a9 /src/driver/svg.php | |
parent | 94953ea4f75810e5e667425bfd55ce8d51672ee3 (diff) | |
download | zetacomponents-graph-5091a24682cf37af25eebd4158a0d9480aea6252.zip zetacomponents-graph-5091a24682cf37af25eebd4158a0d9480aea6252.tar.gz |
- Started refactoring of font configuration
# - The next iteration will enable you to use the different font rendering
# methods from ext/GD
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r-- | src/driver/svg.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php index 2b5ff90..51f356a 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -298,7 +298,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver foreach ( $this->strings as $text ) { $size = $text['options']->minimalUsedFont; - $font = $text['options']->font; + $font = $text['options']->name; $completeHeight = count( $text['text'] ) * $size + ( count( $text['text'] ) - 1 ) * $this->options->lineSpacing; @@ -352,8 +352,9 @@ class ezcGraphSvgDriver extends ezcGraphDriver $textNode->setAttribute( 'style', sprintf( - 'font-size: %dpx; font-family: sans-serif; fill: #%02x%02x%02x; fill-opacity: %.2f; stroke: none;', + 'font-size: %dpx; font-family: %s; fill: #%02x%02x%02x; fill-opacity: %.2f; stroke: none;', $size, + $text['options']->name, $text['options']->color->red, $text['options']->color->green, $text['options']->color->blue, |