Fixed fontdir handling.
[redact.git] / lib / redact / redact.rb
index d0da5d7859b655ad2d47d78eb78e28827a4b5fc4..6b505f28cee7daf61c92aa53a9362b2a10bb38e4 100644 (file)
@@ -1,5 +1,5 @@
 #--
-# $Id: redact.rb 44 2005-06-08 17:35:49Z tilman $
+# $Id: redact.rb 45 2005-06-08 18:02:12Z tilman $
 #
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
@@ -145,7 +145,7 @@ module Redact
                attr_reader :filename
 
                def initialize(filename)
-                       @filename = find_font(filename.to_str).freeze
+                       @filename = filename.to_str.dup.freeze
                end
 
                protected
@@ -156,16 +156,6 @@ module Redact
                def to_eet_properties
                        {"entry" => [@filename]}
                end
-
-               private
-               def find_font(file)
-                       [".", OPTIONS.font_dir].each do |d|
-                               f2 = File.join(d, file)
-                               return f2 if File.file?(f2)
-                       end
-
-                       nil
-               end
        end
 
        class ImageDirectory < Array # :nodoc: