--
-$Id: ChangeLog 25 2005-04-14 19:42:06Z tilman $
+$Id: ChangeLog 26 2005-04-14 19:44:49Z tilman $
++
2005-04-14 Tilman Sauerbeck (tilman at code-monkey de)
* lib/{redact,part,program}.rb: Replaced most attr_accessor
calls by explicit setter methods to ensure type safety
+ * lib/part.rb: Code cleanup
2005-04-09 Tilman Sauerbeck (tilman at code-monkey de)
* test/crossfade.rb: Updated for recent tween mode fixes
#--
-# $Id: part.rb 25 2005-04-14 19:42:06Z tilman $
+# $Id: part.rb 26 2005-04-14 19:44:49Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
end
def font=(f)
- md = f.to_str.match(/.*\.ttf/)
+ f = f.to_str.strip
+ md = f.match(/.*\.ttf/)
unless md.nil?
found = EDJE.font_dir.find { |font| font.filename == f }
if found.nil?
end
end
- @font = f.dup
+ @font = f
end
def outline_color=(c)