Permalink
Browse files

The generator now uses XMLReader instead of SimpleXML, should be easi…

…er on the server.
  • Loading branch information...
1 parent a7cac54 commit eefefdcbb0f506d8667d47355c1bfa3869a19726 @sorccu committed Jul 10, 2010
Showing with 244 additions and 165 deletions.
  1. +2 −2 generate/lib/Cufon.php
  2. +182 −129 generate/lib/SVGFont.php
  3. +60 −34 generate/lib/SVGFontContainer.php
View
@@ -127,9 +127,9 @@ public static function generate($file, array $options)
"any circumstances.\n\n${output}");
}
- foreach (SVGFontContainer::fromFile($svgFile, $options) as $font)
+ foreach (new SVGFontContainer($svgFile, $options) as $font)
{
- $fonts[$font->getId()] = sprintf("%s%s(%s);\n",
+ $fonts[$font->getFaceBasedId()] = sprintf("%s%s(%s);\n",
$copyright,
isset($options['callback']) ? $options['callback'] : '',
$font->toJavaScript()
Oops, something went wrong.

0 comments on commit eefefdc

Please sign in to comment.