diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2008-01-07 09:59:44 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2008-01-07 09:59:44 +0000 |
commit | ccc75f9a0f37cf808a4dda2dc68b731e0be177ef (patch) | |
tree | 3506265edc50b9aceb5bea8886ac9260e03cda61 /src/renderer | |
parent | bd8a1c9052a0c97f374a760618ea04bdda3d79d3 (diff) | |
download | zetacomponents-graph-ccc75f9a0f37cf808a4dda2dc68b731e0be177ef.zip zetacomponents-graph-ccc75f9a0f37cf808a4dda2dc68b731e0be177ef.tar.gz |
- Fixed issue #11777: Optionally independent axis font configuration
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/2d.php | 7 | ||||
-rw-r--r-- | src/renderer/3d.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php index 929dbdd..58d68bf 100644 --- a/src/renderer/2d.php +++ b/src/renderer/2d.php @@ -1440,6 +1440,13 @@ class ezcGraphRenderer2d { foreach ( $this->axisLabels as $nr => $axisLabel ) { + // If font should not be synchronized, use font configuration from + // each axis + if ( $this->options->syncAxisFonts === false ) + { + $this->driver->options->font = $axisLabel['axis']->font; + } + $start = $axisLabel['start']; $end = $axisLabel['end']; diff --git a/src/renderer/3d.php b/src/renderer/3d.php index 01c763b..0a39e50 100644 --- a/src/renderer/3d.php +++ b/src/renderer/3d.php @@ -2225,6 +2225,13 @@ class ezcGraphRenderer3d { foreach ( $this->axisLabels as $axisLabel ) { + // If font should not be synchronized, use font configuration from + // each axis + if ( $this->options->syncAxisFonts === false ) + { + $this->driver->options->font = $axisLabel['axis']->font; + } + switch ( $axisLabel['axis']->position ) { case ezcGraph::RIGHT: |