parent
1bc9e3f19e
commit
3d1f1ff989
|
|
@ -7,6 +7,7 @@ Squib follows [semantic versioning](http://semver.org).
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
* Fixed bug on circle and other shapes that had an extra stroke from a previous text call (#248)
|
* Fixed bug on circle and other shapes that had an extra stroke from a previous text call (#248)
|
||||||
|
* Fixed extra page on all sprue saves (#246)
|
||||||
|
|
||||||
Chores:
|
Chores:
|
||||||
* Bumped deps: Pango et al. to 3.2.7, Cairo to 1.15.13.
|
* Bumped deps: Pango et al. to 3.2.7, Cairo to 1.15.13.
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ module Squib
|
||||||
end
|
end
|
||||||
|
|
||||||
draw_overlay_above_cards cc
|
draw_overlay_above_cards cc
|
||||||
cc = draw_page cc
|
|
||||||
cc.target.finish
|
cc.target.finish
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -61,7 +60,7 @@ module Squib
|
||||||
private
|
private
|
||||||
|
|
||||||
def next_page_if_needed(cc, i, per_sheet)
|
def next_page_if_needed(cc, i, per_sheet)
|
||||||
return cc unless (i != 0) && (i % per_sheet).zero?
|
return cc unless (i != 0) && (i % per_sheet) == 0
|
||||||
|
|
||||||
draw_overlay_above_cards cc
|
draw_overlay_above_cards cc
|
||||||
cc = draw_page cc
|
cc = draw_page cc
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Squib::Deck.new(width: '65.8mm', height: '76mm', cards: 9) do
|
||||||
)
|
)
|
||||||
text(
|
text(
|
||||||
str: %w[One Two Three Four Five Six Seven Eight Nine],
|
str: %w[One Two Three Four Five Six Seven Eight Nine],
|
||||||
x: '27mm', y: '35mm', width: '11.8mm', height: '6mm',
|
x: '22mm', y: '35mm', width: '21.8mm', height: '6mm',
|
||||||
align: :center, valign: :middle
|
align: :center, valign: :middle
|
||||||
)
|
)
|
||||||
save_pdf file: 'hex_tiles.pdf',
|
save_pdf file: 'hex_tiles.pdf',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue