# @option opts range [Enumerable, :all] (:all) the range of cards over which this will be rendered. See {file:README.md#Specifying_Ranges Specifying Ranges}
# @option opts range [Enumerable, :all] (:all) the range of cards over which this will be rendered. See {file:README.md#Specifying_Ranges Specifying Ranges}
# @option opts x1 [Integer] (0) the x-coordinate to place. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts x1 [Integer] (0) the x-coordinate of the first endpoint. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts y1 [Integer] (0) the y-coordinate to place. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts y1 [Integer] (0) the y-coordinate of the first endpoint. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts x2 [Integer] (50) the x-coordinate to place. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts x2 [Integer] (50) the x-coordinate of the second endpoint. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts y2 [Integer] (50) the y-coordinate to place. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts y2 [Integer] (50) the y-coordinate of the second endpoint. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts cx1 [Integer] (0) the x-coordinate of the first control point. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts cy1 [Integer] (0) the y-coordinate of the first control point. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts cx2 [Integer] (50) the x-coordinate of the second control point. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts cy2 [Integer] (50) the y-coordinate of the second control point. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts stroke_color [String] (:black) the color with which to stroke the line. See {file:README.md#Specifying_Colors___Gradients Specifying Colors & Gradients}.
# @option opts stroke_color [String] (:black) the color with which to stroke the line. See {file:README.md#Specifying_Colors___Gradients Specifying Colors & Gradients}.
# @option opts stroke_width [Decimal] (2.0) the width of the outside stroke. Supports Unit Conversion, see {file:README.md#Units Units}.
# @option opts stroke_width [Decimal] (2.0) the width of the outside stroke. Supports Unit Conversion, see {file:README.md#Units Units}.
Squib.logger.warn"Center- or right-aligned text do not always embed properly. This is a known issue with a workaround. See https://github.com/andymeneely/squib/issues/46"
Squib.logger.warn"Center- or right-aligned text do not always embed properly. This is a known issue with a workaround. See https://github.com/andymeneely/squib/issues/46"
end
end
x=Pango.pixels(rect.x+(letter_width/2))+rule[:dx]
x=Pango.pixels(rect.x+(letter_width/2))+rule[:dx]
y=Pango.pixels(rect.y)+rule[:dy]+vertical_start
y=Pango.pixels(rect.y)+rule[:dy]
puts<<-EOS
draw_calls<<{x:x,y:y,draw:rule[:draw]}# defer drawing until we've valigned
Embed:#{key}
Index:#{index}
Spacing:#{spacing} or #{Pango.pixels(spacing)}px
Markupstring:#{str}
index_to_pos:#{rect.x},#{rect.y} or #{Pango.pixels(rect.x)},#{Pango.pixels(rect.y)}
pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: move_to([0, 0])
cairo: update_pango_layout([MockDouble])
cairo: update_pango_layout([MockDouble])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.21875, 0.21875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.0546875, 0.0546875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 <span letter_spacing=\"28672\"> </span>"])
pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: move_to([0, 0])
cairo: update_pango_layout([MockDouble])
cairo: update_pango_layout([MockDouble])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.21875, 0.21875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.0546875, 0.0546875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 <span letter_spacing=\"28672\"> </span>"])
pango: markup=(["Embedded icons! Take 1 :tool: and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: move_to([0, 0])
cairo: update_pango_layout([MockDouble])
cairo: update_pango_layout([MockDouble])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2:health:. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.21875, 0.21875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 :tool:"])
cairo: update_pango_layout([MockDouble])
pango_iter: next_char!([])
cairo: save([])
cairo: translate([-14.0, 0.0])
cairo: rotate([0])
cairo: scale([0.0546875, 0.0546875])
cairo: render_rsvg_handle([RSVG::Handle, nil])
cairo: restore([])
pango: markup=(["Embedded icons! Take 1 <span letter_spacing=\"28672\"> </span> and gain 2<span letter_spacing=\"28672\"> </span>. If Level 2, take 2 <span letter_spacing=\"28672\"> </span>"])