lib/lipstick/images/email_banner.rb in aaf-lipstick-3.0.4 vs lib/lipstick/images/email_banner.rb in aaf-lipstick-3.0.5
- old
+ new
@@ -82,10 +82,11 @@
title_format.annotate(canvas, 0, 0, title_x, title_y, @title)
end
def annotate_environment(canvas)
return if blank_environment?
+
environment_format.annotate(canvas, 0, 0, env_x, env_y, @environment)
end
def logo
@logo ||= Magick::Image.read(@image.pathname.to_s).first
@@ -113,9 +114,10 @@
title_format.get_type_metrics(@title)
end
def env_metrics
return OpenStruct.new(width: 0, height: 0) if blank_environment?
+
environment_format.get_type_metrics(@environment)
end
# Halve the total margin to horizontally center the whole content area.
def margin_x