diff options
author | Thomas Jourdan <b.vehikel@googlemail.com> | 2010-01-03 10:49:23 (GMT) |
---|---|---|
committer | Thomas Jourdan <b.vehikel@googlemail.com> | 2010-01-03 10:49:23 (GMT) |
commit | 9e2fd70f8e06e550baf1e396568e6c9674b3d08f (patch) | |
tree | fcd3a2b8df82cd4b2bf0cb22843c9a3ffed6c3f1 /ep_stamp_glyph.py | |
parent | ee878465ad84f8b2fd25eccf690ea29dde27e7df (diff) |
Added stamps using SVG files.
Bug fixed in the minimal distance calculation of Voronoi diagrams.
Diffstat (limited to 'ep_stamp_glyph.py')
-rw-r--r-- | ep_stamp_glyph.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ep_stamp_glyph.py b/ep_stamp_glyph.py index d37f9b7..c2b151a 100644 --- a/ep_stamp_glyph.py +++ b/ep_stamp_glyph.py @@ -15,6 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +import os import random import cairo import model_random @@ -23,7 +24,7 @@ import model_allele import model_constraintpool from gettext import gettext as _ -FONTSIZE_CONSTRAINT = 'fontsize_constraint' +FONTSIZE_CONSTRAINT = 'fontsizeconstraint' class GlyphStamp(model_allele.Allele): """GlyphStamp:. @@ -89,6 +90,10 @@ class GlyphStamp(model_allele.Allele): self.mapping, other.mapping) return new_one + + def set_extent(self, width, height): + """Set extent of stamp. Some stamps will ignore this.""" + pass def render(self, ctx, point, rad=0.1, state=0): """ |