Document and test rtl option
parent
695bd8fb77
commit
824a28c87d
|
|
@ -5,6 +5,7 @@ Squib follows [semantic versioning](http://semver.org).
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
* `circle` method now supports various `arc` options, so you can draw partial circles (#211) by @sparr
|
* `circle` method now supports various `arc` options, so you can draw partial circles (#211) by @sparr
|
||||||
|
* `save_sheet` method now supports `rtl` or "right-to-left", for easier duplex printing of backs (#204, #208) by @sparr
|
||||||
|
|
||||||
Special thanks to @sparr for all of his work!!
|
Special thanks to @sparr for all of his work!!
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,10 @@ Squib::Deck.new(width: 825, height: 1125, cards: 16) do
|
||||||
range: 0..5,
|
range: 0..5,
|
||||||
columns: 2, rows: 2,
|
columns: 2, rows: 2,
|
||||||
margin: 75, gap: 5, trim: 37
|
margin: 75, gap: 5, trim: 37
|
||||||
|
|
||||||
|
# Sheets can arrange left-to-right and right-to-left
|
||||||
|
save_sheet prefix: 'save_sheet_rtl_',
|
||||||
|
range: 0..1, rtl: true,
|
||||||
|
columns: 2, rows: 1,
|
||||||
|
margin: 75, gap: 5, trim: 37
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
|
|
@ -1719,6 +1719,15 @@ cairo: paint([])
|
||||||
cairo: set_source([MockDouble, 180, 75])
|
cairo: set_source([MockDouble, 180, 75])
|
||||||
cairo: paint([])
|
cairo: paint([])
|
||||||
surface: write_to_png(["_output/save_sheet_range_01.png"])
|
surface: write_to_png(["_output/save_sheet_range_01.png"])
|
||||||
|
cairo: set_source([MockDouble, -37, -37])
|
||||||
|
cairo: paint([])
|
||||||
|
cairo: set_source([MockDouble, 767, 75])
|
||||||
|
cairo: paint([])
|
||||||
|
cairo: set_source([MockDouble, -37, -37])
|
||||||
|
cairo: paint([])
|
||||||
|
cairo: set_source([MockDouble, 662, 75])
|
||||||
|
cairo: paint([])
|
||||||
|
surface: write_to_png(["_output/save_sheet_rtl_00.png"])
|
||||||
surface: finish([])
|
surface: finish([])
|
||||||
surface: finish([])
|
surface: finish([])
|
||||||
surface: finish([])
|
surface: finish([])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue