text: Reset move_to for valign if doing a stroke outline

Contributes to #102

[skip ci]
dev
Andy Meneely 2015-07-27 23:21:49 -04:00
parent 2cc5b8d1a0
commit fed2889aef
1 changed files with 2 additions and 1 deletions

View File

@ -149,9 +149,10 @@ module Squib
embed_draws = process_embeds(embed, para.str, layout) embed_draws = process_embeds(embed, para.str, layout)
vertical_start = compute_valign(layout, para.valign) vertical_start = compute_valign(layout, para.valign)
cc.move_to(0, vertical_start) cc.move_to(0, vertical_start) #TODO clean this up a bit
stroke_outline!(cc, layout, draw) if draw.stroke_strategy == :stroke_first stroke_outline!(cc, layout, draw) if draw.stroke_strategy == :stroke_first
cc.move_to(0, vertical_start)
cc.show_pango_layout(layout) cc.show_pango_layout(layout)
stroke_outline!(cc, layout, draw) if draw.stroke_strategy == :fill_first stroke_outline!(cc, layout, draw) if draw.stroke_strategy == :fill_first
begin begin