letter_width=iter.char_extents.width-spacing# the width of our inserted space char
caselayout.alignment
whenPango::Layout::Alignment::CENTER,
Pango::Layout::Alignment::RIGHT
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
x=Pango.pixels(rect.x+(letter_width/2))+rule[:dx]
x=Pango.pixels(rect.x)+rule[:dx]
y=Pango.pixels(rect.y)+rule[:dy]
draw_calls<<{x:x,y:y,draw:rule[:draw]}# defer drawing until we've valigned