diff --git a/lib/PHPPdf/Core/Document.php b/lib/PHPPdf/Core/Document.php
index <HASH>..<HASH> 100644
--- a/lib/PHPPdf/Core/Document.php
+++ b/lib/PHPPdf/Core/Document.php
@@ -8,11 +8,11 @@
 

 namespace PHPPdf\Core;

 

-use PHPPdf\Util\AbstractStringFilterContainer;
-use PHPPdf\Util\StringFilter;
-use PHPPdf\Exception\RuntimeException;
-use PHPPdf\Exception\LogicException;
-use PHPPdf\Exception\InvalidArgumentException;
+use PHPPdf\Util\AbstractStringFilterContainer;

+use PHPPdf\Util\StringFilter;

+use PHPPdf\Exception\RuntimeException;

+use PHPPdf\Exception\LogicException;

+use PHPPdf\Exception\InvalidArgumentException;

 use PHPPdf\Core\Node\Node;

 use PHPPdf\Core\Engine\ZF\Engine as ZfEngine;

 use PHPPdf\Core\Formatter as Formatters;

@@ -268,8 +268,10 @@ class Document extends AbstractStringFilterContainer implements Engine
         {

             foreach($this->stringFilters as $filter)

             {

-                $data[$name] = $filter->filter($value);

+                $value = $filter->filter($value);

             }

+

+			$data[$name] = $value;

         }

         

         return $this->engine->createFont($data);
fix bug in %resources% wildcard replacement