Also set TextDescription::font if a matching FontDirectoryEntry was found.
[redact.git] / lib / redact / part.rb
index 0150a354cc185da8851d24e5ebfddb293498b691..b282d04b04faf315109bf1809d8576007664547c 100644 (file)
@@ -1,5 +1,5 @@
 #--
-# $Id: part.rb 45 2005-06-08 18:02:12Z tilman $
+# $Id: part.rb 46 2005-06-08 18:03:34Z tilman $
 #
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
@@ -532,6 +532,8 @@ module Redact
                                if found.nil?
                                        EDJE.font_dir << FontDirectoryEntry.new(f2)
                                        @font = EDJE.font_dir.last.filename
+                               else
+                                       @font = found.filename
                                end
                        else
                                @font = f