letter_width=iter.char_extents.width-spacing# the width of our inserted space char
para_x=caselayout.alignment
whenPango::Layout::Alignment::CENTER
(layout.width-iter.line_extents[0].width)/2
whenPango::Layout::Alignment::RIGHT
layout.width-iter.line_extents[0].width
else
0
end
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"