summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-05-03 16:36:57 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-05-03 16:36:57 +0000
commit5d4947a0cb1ba3bd7e4097b3da9b772dd16d4094 (patch)
tree088ede950f85e6af9aca1902bcc34a1a463e7d37 /src/options
parent92c7fc36f830d168e02cd26729d7f099bddce707 (diff)
downloadzetacomponents-graph-5d4947a0cb1ba3bd7e4097b3da9b772dd16d4094.zip
zetacomponents-graph-5d4947a0cb1ba3bd7e4097b3da9b772dd16d4094.tar.gz
- Implemented feature #10957: Embed glyphs for exact SVG font width estimation
# Lots of binary diffs, because font-family names are now enclosed in ' in SVG # files.
Diffstat (limited to 'src/options')
-rw-r--r--src/options/font.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options/font.php b/src/options/font.php
index 94af97a..358659a 100644
--- a/src/options/font.php
+++ b/src/options/font.php
@@ -225,6 +225,10 @@ class ezcGraphFontOptions extends ezcBaseOptions
case 'ttf':
$this->properties['type'] = ezcGraph::TTF_FONT;
break;
+ case 'svg':
+ $this->properties['type'] = ezcGraph::SVG_FONT;
+ $this->properties['name'] = ezcGraphSvgFont::getFontName( $propertyValue );
+ break;
default:
throw new ezcGraphUnknownFontTypeException( $propertyValue, $parts['extension'] );
}
OpenPOWER on IntegriCloud