Fix color handling with text outline stroking

Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
This commit is contained in:
Andy Meneely
2015-04-30 09:54:41 -04:00
parent 2e84cf4e6a
commit 71defb9e33
20 changed files with 206 additions and 206 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
end
text str: "Stroke n <span fgcolor=\"\#ff0000\">fill</span>",
color: :green, stroke_width: 3.0, stroke_color: :blue,
color: :green, stroke_width: 2.0, stroke_color: :blue,
x: '1.8in', y: '3in', width: '0.85in', font: 'Sans Bold 26', markup: true
text str: "<b>Markup</b> is <i>quite</i> <s>'easy'</s> <span fgcolor=\"\#ff0000\">awesome</span>. Can't beat those \"smart\" 'quotes', now with 10--20% more en-dashes --- and em-dashes --- with explicit ellipses too...",