squib 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +14 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +201 -175
- data/Gemfile +2 -4
- data/README.md +650 -645
- data/RELEASE TODO.md +18 -18
- data/Rakefile +106 -99
- data/appveyor.yml +29 -0
- data/lib/squib.rb +32 -32
- data/lib/squib/api/background.rb +20 -20
- data/lib/squib/api/data.rb +131 -131
- data/lib/squib/api/image.rb +108 -90
- data/lib/squib/api/save.rb +151 -149
- data/lib/squib/api/settings.rb +35 -35
- data/lib/squib/api/shapes.rb +255 -230
- data/lib/squib/api/text.rb +65 -65
- data/lib/squib/api/text_embed.rb +96 -96
- data/lib/squib/args/arg_loader.rb +138 -138
- data/lib/squib/args/box.rb +54 -54
- data/lib/squib/args/card_range.rb +32 -32
- data/lib/squib/args/color_validator.rb +11 -11
- data/lib/squib/args/coords.rb +32 -32
- data/lib/squib/args/dir_validator.rb +16 -16
- data/lib/squib/args/draw.rb +92 -92
- data/lib/squib/args/embed_adjust.rb +25 -25
- data/lib/squib/args/embed_key.rb +17 -17
- data/lib/squib/args/hand_special.rb +37 -37
- data/lib/squib/args/import.rb +39 -39
- data/lib/squib/args/input_file.rb +37 -37
- data/lib/squib/args/paint.rb +43 -43
- data/lib/squib/args/paragraph.rb +116 -115
- data/lib/squib/args/save_batch.rb +63 -60
- data/lib/squib/args/scale_box.rb +53 -53
- data/lib/squib/args/sheet.rb +72 -72
- data/lib/squib/args/showcase_special.rb +38 -38
- data/lib/squib/args/svg_special.rb +37 -37
- data/lib/squib/args/transform.rb +60 -24
- data/lib/squib/args/typographer.rb +117 -117
- data/lib/squib/card.rb +66 -67
- data/lib/squib/conf.rb +131 -117
- data/lib/squib/constants.rb +12 -178
- data/lib/squib/deck.rb +113 -113
- data/lib/squib/graphics/cairo_context_wrapper.rb +113 -99
- data/lib/squib/graphics/gradient_regex.rb +46 -46
- data/lib/squib/graphics/hand.rb +42 -42
- data/lib/squib/graphics/image.rb +103 -76
- data/lib/squib/graphics/save_doc.rb +103 -103
- data/lib/squib/graphics/save_images.rb +39 -33
- data/lib/squib/graphics/shapes.rb +135 -119
- data/lib/squib/graphics/showcase.rb +85 -85
- data/lib/squib/graphics/text.rb +176 -176
- data/lib/squib/layout_parser.rb +91 -91
- data/lib/squib/layouts/economy.yml +85 -85
- data/lib/squib/layouts/fantasy.yml +101 -101
- data/lib/squib/layouts/hand.yml +62 -62
- data/lib/squib/layouts/playing-card.yml +35 -35
- data/lib/squib/layouts/tuck_box.yml +45 -45
- data/lib/squib/project_template/IDEAS.md +22 -0
- data/lib/squib/project_template/PLAYTESTING.md +26 -0
- data/lib/squib/project_template/RULES.md +21 -0
- data/lib/squib/project_template/config.yml +49 -45
- data/lib/squib/sample_helpers.rb +34 -0
- data/lib/squib/version.rb +10 -10
- data/samples/autoscale_font/_autoscale_font.rb +29 -0
- data/samples/color_shortcuts.rb +6 -6
- data/samples/csv_import.rb +26 -26
- data/samples/custom-config.yml +5 -5
- data/samples/custom_config.rb +18 -18
- data/samples/draw_shapes.rb +48 -45
- data/samples/embed_text.rb +88 -88
- data/samples/excel.rb +55 -55
- data/samples/hand.rb +24 -24
- data/samples/images/_images.rb +104 -0
- data/samples/intro/01_hello.rb +9 -0
- data/samples/intro/02_options.rb +15 -0
- data/samples/intro/03_layout.rb +12 -0
- data/samples/intro/04_arrays.rb +16 -0
- data/samples/intro/05_excel.rb +15 -0
- data/samples/layouts.rb +62 -62
- data/samples/layouts_builtin.rb +51 -51
- data/samples/load_images.rb +99 -78
- data/samples/load_images_config.yml +1 -0
- data/samples/quantity_explosion.csv +2 -2
- data/samples/ranges.rb +64 -64
- data/samples/sample.csv +2 -2
- data/samples/saves.rb +9 -1
- data/samples/sprites.png +0 -0
- data/samples/text/_text.rb +46 -0
- data/samples/text_options.rb +102 -102
- data/spec/api/api_data_spec.rb +117 -117
- data/spec/api/api_settings_spec.rb +37 -37
- data/spec/args/box_spec.rb +127 -127
- data/spec/args/draw_spec.rb +101 -95
- data/spec/args/embed_key_spec.rb +13 -13
- data/spec/args/input_file_spec.rb +21 -21
- data/spec/args/paint_spec.rb +21 -21
- data/spec/args/paragraph_spec.rb +152 -152
- data/spec/args/range_spec.rb +40 -40
- data/spec/args/save_batch_spec.rb +51 -51
- data/spec/args/scale_box_spec.rb +71 -71
- data/spec/args/sheet_spec.rb +58 -58
- data/spec/args/showcase_special_spec.rb +15 -15
- data/spec/args/transform_spec.rb +25 -0
- data/spec/card_spec.rb +11 -0
- data/spec/conf_spec.rb +13 -3
- data/spec/data/conf/unrecognized.yml +4 -0
- data/spec/data/csv/qty.csv +2 -2
- data/spec/data/csv/qty_named.csv +2 -2
- data/spec/data/csv/with_spaces.csv +2 -2
- data/spec/data/samples/autoscale_font.rb.txt +84 -84
- data/spec/data/samples/basic.rb.txt +227 -209
- data/spec/data/samples/config_text_markup.rb.txt +72 -72
- data/spec/data/samples/csv_import.rb.txt +213 -213
- data/spec/data/samples/custom_config.rb.txt +57 -48
- data/spec/data/samples/draw_shapes.rb.txt +555 -3
- data/spec/data/samples/embed_text.rb.txt +283 -283
- data/spec/data/samples/excel.rb.txt +661 -661
- data/spec/data/samples/gradients.rb.txt +77 -79
- data/spec/data/samples/hand.rb.txt +538 -538
- data/spec/data/samples/hello_world.rb.txt +36 -36
- data/spec/data/samples/load_images.rb.txt +170 -0
- data/spec/data/samples/portrait-landscape.rb.txt +51 -49
- data/spec/data/samples/ranges.rb.txt +472 -460
- data/spec/data/samples/saves.rb.txt +810 -801
- data/spec/data/samples/showcase.rb.txt +5926 -5910
- data/spec/data/samples/text_options.rb.txt +1125 -1125
- data/spec/data/samples/tgc_proofs.rb.txt +95 -81
- data/spec/graphics/cairo_context_wrapper_spec.rb +104 -84
- data/spec/graphics/graphics_save_doc_spec.rb +67 -67
- data/spec/samples/diff-with-css.example.html +39 -0
- data/spec/samples/expected/load_images_00.png +0 -0
- data/spec/samples/expected/shape_00.png +0 -0
- data/spec/samples/run_samples_spec.rb +17 -0
- data/spec/samples/samples_regression_spec.rb +72 -82
- data/spec/spec_helper.rb +9 -1
- data/squib.gemspec +49 -48
- data/squib.sublime-project +42 -42
- metadata +94 -48
- data/spec/graphics/graphics_images_spec.rb +0 -94
@@ -1,283 +1,283 @@
|
|
1
|
-
cairo: antialias=(["subpixel"])
|
2
|
-
cairo: save([])
|
3
|
-
cairo: set_source_color(["white"])
|
4
|
-
cairo: paint([])
|
5
|
-
cairo: restore([])
|
6
|
-
cairo: save([])
|
7
|
-
cairo: rounded_rectangle([0, 0, 825, 1125, 0, 0])
|
8
|
-
cairo: set_source_color(["#0000"])
|
9
|
-
cairo: fill_preserve([])
|
10
|
-
cairo: set_source_color(["black"])
|
11
|
-
cairo: set_line_width([2.0])
|
12
|
-
cairo: set_line_join([0])
|
13
|
-
cairo: set_line_cap([0])
|
14
|
-
cairo: set_dash([[]])
|
15
|
-
cairo: stroke([])
|
16
|
-
cairo: restore([])
|
17
|
-
cairo: save([])
|
18
|
-
cairo: set_source_color(["black"])
|
19
|
-
cairo: translate([0, 0])
|
20
|
-
cairo: rotate([0])
|
21
|
-
cairo: move_to([0, 0])
|
22
|
-
pango: font_description=([MockDouble])
|
23
|
-
pango: text=(["Take 11 :tool: and gain 2 :health:. Take <b>2</b> :tool: <i>and gain 3 :purse: if level 2.</i>"])
|
24
|
-
pango: width=([184320])
|
25
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
26
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
27
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
28
|
-
pango: justify=([false])
|
29
|
-
pango: markup=(["Take 11 :tool: and gain 2 :health:. Take <b>2</b> :tool: <i>and gain 3 :purse: if level 2.</i>"])
|
30
|
-
cairo: move_to([0, 0])
|
31
|
-
cairo: move_to([0, 0])
|
32
|
-
cairo: show_pango_layout([MockDouble])
|
33
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
34
|
-
cairo: set_source_color([:red])
|
35
|
-
cairo: set_line_width([2.0])
|
36
|
-
cairo: stroke([])
|
37
|
-
pango: ellipsized?([])
|
38
|
-
cairo: restore([])
|
39
|
-
cairo: save([])
|
40
|
-
cairo: set_source_color(["black"])
|
41
|
-
cairo: translate([200, 0])
|
42
|
-
cairo: rotate([0])
|
43
|
-
cairo: move_to([0, 0])
|
44
|
-
pango: font_description=([MockDouble])
|
45
|
-
pango: text=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"])
|
46
|
-
pango: width=([184320])
|
47
|
-
pango: height=([307200])
|
48
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
49
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
50
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
51
|
-
pango: justify=([false])
|
52
|
-
pango: markup=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"])
|
53
|
-
cairo: move_to([0, 0.0])
|
54
|
-
cairo: move_to([0, 0.0])
|
55
|
-
cairo: show_pango_layout([MockDouble])
|
56
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
57
|
-
cairo: set_source_color([:cyan])
|
58
|
-
cairo: set_line_width([2.0])
|
59
|
-
cairo: stroke([])
|
60
|
-
pango: ellipsized?([])
|
61
|
-
cairo: restore([])
|
62
|
-
cairo: save([])
|
63
|
-
cairo: set_source_color(["black"])
|
64
|
-
cairo: translate([400, 0])
|
65
|
-
cairo: rotate([0])
|
66
|
-
cairo: move_to([0, 0])
|
67
|
-
pango: font_description=([MockDouble])
|
68
|
-
pango: text=(["This :tool: aligns on the bottom properly. :purse:"])
|
69
|
-
pango: width=([184320])
|
70
|
-
pango: height=([307200])
|
71
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
72
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
73
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
74
|
-
pango: justify=([false])
|
75
|
-
pango: markup=(["This :tool: aligns on the bottom properly. :purse:"])
|
76
|
-
cairo: move_to([0, 0.0])
|
77
|
-
cairo: move_to([0, 0.0])
|
78
|
-
cairo: show_pango_layout([MockDouble])
|
79
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
80
|
-
cairo: set_source_color([:green])
|
81
|
-
cairo: set_line_width([2.0])
|
82
|
-
cairo: stroke([])
|
83
|
-
pango: ellipsized?([])
|
84
|
-
cairo: restore([])
|
85
|
-
cairo: save([])
|
86
|
-
cairo: set_source_color(["black"])
|
87
|
-
cairo: translate([600, 0])
|
88
|
-
cairo: rotate([0])
|
89
|
-
cairo: move_to([0, 0])
|
90
|
-
pango: font_description=([MockDouble])
|
91
|
-
pango: text=(["Wrapping multiples: These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"])
|
92
|
-
pango: width=([184320])
|
93
|
-
pango: height=([307200])
|
94
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
95
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
96
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
97
|
-
pango: justify=([false])
|
98
|
-
pango: markup=(["Wrapping multiples: These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"])
|
99
|
-
cairo: move_to([0, 0.0])
|
100
|
-
cairo: move_to([0, 0.0])
|
101
|
-
cairo: show_pango_layout([MockDouble])
|
102
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
103
|
-
cairo: set_source_color([:cyan])
|
104
|
-
cairo: set_line_width([2.0])
|
105
|
-
cairo: stroke([])
|
106
|
-
pango: ellipsized?([])
|
107
|
-
cairo: restore([])
|
108
|
-
cairo: save([])
|
109
|
-
cairo: set_source_color(["black"])
|
110
|
-
cairo: translate([0, 320])
|
111
|
-
cairo: rotate([0])
|
112
|
-
cairo: move_to([0, 0])
|
113
|
-
pango: font_description=([MockDouble])
|
114
|
-
pango: text=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"])
|
115
|
-
pango: width=([184320])
|
116
|
-
pango: height=([307200])
|
117
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
118
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
119
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
120
|
-
pango: justify=([true])
|
121
|
-
pango: markup=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"])
|
122
|
-
cairo: move_to([0, 0.0])
|
123
|
-
cairo: move_to([0, 0.0])
|
124
|
-
cairo: show_pango_layout([MockDouble])
|
125
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
126
|
-
cairo: set_source_color([:magenta])
|
127
|
-
cairo: set_line_width([2.0])
|
128
|
-
cairo: stroke([])
|
129
|
-
pango: ellipsized?([])
|
130
|
-
cairo: restore([])
|
131
|
-
cairo: save([])
|
132
|
-
cairo: set_source_color(["black"])
|
133
|
-
cairo: translate([200, 320])
|
134
|
-
cairo: rotate([0])
|
135
|
-
cairo: move_to([0, 0])
|
136
|
-
pango: font_description=([MockDouble])
|
137
|
-
pango: text=(["Right-aligned works :tool: with :health: and :purse:"])
|
138
|
-
pango: width=([184320])
|
139
|
-
pango: height=([307200])
|
140
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
141
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
142
|
-
pango: alignment=([#<Pango::Layout::Alignment right>])
|
143
|
-
pango: justify=([false])
|
144
|
-
pango: markup=(["Right-aligned works :tool: with :health: and :purse:"])
|
145
|
-
cairo: move_to([0, 0.0])
|
146
|
-
cairo: move_to([0, 0.0])
|
147
|
-
cairo: show_pango_layout([MockDouble])
|
148
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
149
|
-
cairo: set_source_color([:magenta])
|
150
|
-
cairo: set_line_width([2.0])
|
151
|
-
cairo: stroke([])
|
152
|
-
pango: ellipsized?([])
|
153
|
-
cairo: restore([])
|
154
|
-
cairo: save([])
|
155
|
-
cairo: set_source_color(["black"])
|
156
|
-
cairo: translate([400, 320])
|
157
|
-
cairo: rotate([0])
|
158
|
-
cairo: move_to([0, 0])
|
159
|
-
pango: font_description=([MockDouble])
|
160
|
-
pango: text=([":tool:Center-aligned works :tool: with :health: and :purse:"])
|
161
|
-
pango: width=([184320])
|
162
|
-
pango: height=([307200])
|
163
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
164
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
165
|
-
pango: alignment=([#<Pango::Layout::Alignment center>])
|
166
|
-
pango: justify=([false])
|
167
|
-
pango: markup=([":tool:Center-aligned works :tool: with :health: and :purse:"])
|
168
|
-
cairo: move_to([0, 0])
|
169
|
-
cairo: move_to([0, 0])
|
170
|
-
cairo: show_pango_layout([MockDouble])
|
171
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
172
|
-
cairo: set_source_color([:magenta])
|
173
|
-
cairo: set_line_width([2.0])
|
174
|
-
cairo: stroke([])
|
175
|
-
pango: ellipsized?([])
|
176
|
-
cairo: restore([])
|
177
|
-
cairo: save([])
|
178
|
-
cairo: set_source_color(["black"])
|
179
|
-
cairo: translate([600, 320])
|
180
|
-
cairo: rotate([0])
|
181
|
-
cairo: move_to([0, 0])
|
182
|
-
pango: font_description=([MockDouble])
|
183
|
-
pango: text=(["Markup --- and typography replacements --- with \":tool:\" icons <i>won't</i> fail"])
|
184
|
-
pango: markup=(["foo"])
|
185
|
-
pango: width=([184320])
|
186
|
-
pango: height=([307200])
|
187
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
188
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
|
189
|
-
pango: alignment=([#<Pango::Layout::Alignment center>])
|
190
|
-
pango: justify=([false])
|
191
|
-
pango: markup=(["foo"])
|
192
|
-
cairo: move_to([0, 0])
|
193
|
-
cairo: move_to([0, 0])
|
194
|
-
cairo: show_pango_layout([MockDouble])
|
195
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
196
|
-
cairo: set_source_color([:magenta])
|
197
|
-
cairo: set_line_width([2.0])
|
198
|
-
cairo: stroke([])
|
199
|
-
pango: ellipsized?([])
|
200
|
-
cairo: restore([])
|
201
|
-
surface: write_to_png(["_output/embed_00.png"])
|
202
|
-
cairo: antialias=(["subpixel"])
|
203
|
-
cairo: antialias=(["subpixel"])
|
204
|
-
cairo: antialias=(["subpixel"])
|
205
|
-
cairo: save([])
|
206
|
-
cairo: set_source_color(["black"])
|
207
|
-
cairo: translate([0, 0])
|
208
|
-
cairo: rotate([0])
|
209
|
-
cairo: move_to([0, 0])
|
210
|
-
pango font: size=([18432])
|
211
|
-
pango: font_description=([MockDouble])
|
212
|
-
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
213
|
-
pango: width=([184320])
|
214
|
-
pango: height=([307200])
|
215
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
216
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
217
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
218
|
-
pango: justify=([false])
|
219
|
-
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
220
|
-
cairo: move_to([0, 0.0])
|
221
|
-
cairo: move_to([0, 0.0])
|
222
|
-
cairo: show_pango_layout([MockDouble])
|
223
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
224
|
-
cairo: set_source_color([:cyan])
|
225
|
-
cairo: set_line_width([2.0])
|
226
|
-
cairo: stroke([])
|
227
|
-
pango: ellipsized?([])
|
228
|
-
cairo: restore([])
|
229
|
-
cairo: save([])
|
230
|
-
cairo: set_source_color(["black"])
|
231
|
-
cairo: translate([0, 0])
|
232
|
-
cairo: rotate([0])
|
233
|
-
cairo: move_to([0, 0])
|
234
|
-
pango font: size=([26624])
|
235
|
-
pango: font_description=([MockDouble])
|
236
|
-
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
237
|
-
pango: width=([184320])
|
238
|
-
pango: height=([307200])
|
239
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
240
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
241
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
242
|
-
pango: justify=([false])
|
243
|
-
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
244
|
-
cairo: move_to([0, 0.0])
|
245
|
-
cairo: move_to([0, 0.0])
|
246
|
-
cairo: show_pango_layout([MockDouble])
|
247
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
248
|
-
cairo: set_source_color([:cyan])
|
249
|
-
cairo: set_line_width([2.0])
|
250
|
-
cairo: stroke([])
|
251
|
-
pango: ellipsized?([])
|
252
|
-
cairo: restore([])
|
253
|
-
cairo: save([])
|
254
|
-
cairo: set_source_color(["black"])
|
255
|
-
cairo: translate([0, 0])
|
256
|
-
cairo: rotate([0])
|
257
|
-
cairo: move_to([0, 0])
|
258
|
-
pango font: size=([35840])
|
259
|
-
pango: font_description=([MockDouble])
|
260
|
-
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
261
|
-
pango: width=([184320])
|
262
|
-
pango: height=([307200])
|
263
|
-
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
264
|
-
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
265
|
-
pango: alignment=([#<Pango::Layout::Alignment left>])
|
266
|
-
pango: justify=([false])
|
267
|
-
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
268
|
-
cairo: move_to([0, 0.0])
|
269
|
-
cairo: move_to([0, 0.0])
|
270
|
-
cairo: show_pango_layout([MockDouble])
|
271
|
-
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
272
|
-
cairo: set_source_color([:cyan])
|
273
|
-
cairo: set_line_width([2.0])
|
274
|
-
cairo: stroke([])
|
275
|
-
pango: ellipsized?([])
|
276
|
-
cairo: restore([])
|
277
|
-
cairo: set_source([MockDouble, 0, 0])
|
278
|
-
cairo: paint([])
|
279
|
-
cairo: set_source([MockDouble, 100, 0])
|
280
|
-
cairo: paint([])
|
281
|
-
cairo: set_source([MockDouble, 200, 0])
|
282
|
-
cairo: paint([])
|
283
|
-
surface: write_to_png(["_output/embed_multisheet_00.png"])
|
1
|
+
cairo: antialias=(["subpixel"])
|
2
|
+
cairo: save([])
|
3
|
+
cairo: set_source_color(["white"])
|
4
|
+
cairo: paint([])
|
5
|
+
cairo: restore([])
|
6
|
+
cairo: save([])
|
7
|
+
cairo: rounded_rectangle([0, 0, 825, 1125, 0, 0])
|
8
|
+
cairo: set_source_color(["#0000"])
|
9
|
+
cairo: fill_preserve([])
|
10
|
+
cairo: set_source_color(["black"])
|
11
|
+
cairo: set_line_width([2.0])
|
12
|
+
cairo: set_line_join([0])
|
13
|
+
cairo: set_line_cap([0])
|
14
|
+
cairo: set_dash([[]])
|
15
|
+
cairo: stroke([])
|
16
|
+
cairo: restore([])
|
17
|
+
cairo: save([])
|
18
|
+
cairo: set_source_color(["black"])
|
19
|
+
cairo: translate([0, 0])
|
20
|
+
cairo: rotate([0])
|
21
|
+
cairo: move_to([0, 0])
|
22
|
+
pango: font_description=([MockDouble])
|
23
|
+
pango: text=(["Take 11 :tool: and gain 2 :health:. Take <b>2</b> :tool: <i>and gain 3 :purse: if level 2.</i>"])
|
24
|
+
pango: width=([184320])
|
25
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
26
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
27
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
28
|
+
pango: justify=([false])
|
29
|
+
pango: markup=(["Take 11 :tool: and gain 2 :health:. Take <b>2</b> :tool: <i>and gain 3 :purse: if level 2.</i>"])
|
30
|
+
cairo: move_to([0, 0])
|
31
|
+
cairo: move_to([0, 0])
|
32
|
+
cairo: show_pango_layout([MockDouble])
|
33
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
34
|
+
cairo: set_source_color([:red])
|
35
|
+
cairo: set_line_width([2.0])
|
36
|
+
cairo: stroke([])
|
37
|
+
pango: ellipsized?([])
|
38
|
+
cairo: restore([])
|
39
|
+
cairo: save([])
|
40
|
+
cairo: set_source_color(["black"])
|
41
|
+
cairo: translate([200, 0])
|
42
|
+
cairo: rotate([0])
|
43
|
+
cairo: move_to([0, 0])
|
44
|
+
pango: font_description=([MockDouble])
|
45
|
+
pango: text=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"])
|
46
|
+
pango: width=([184320])
|
47
|
+
pango: height=([307200])
|
48
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
49
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
50
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
51
|
+
pango: justify=([false])
|
52
|
+
pango: markup=(["Middle align: Take 1 :tool: and gain 2 :health:. Take 2 :tool: and gain 3 :purse:"])
|
53
|
+
cairo: move_to([0, 0.0])
|
54
|
+
cairo: move_to([0, 0.0])
|
55
|
+
cairo: show_pango_layout([MockDouble])
|
56
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
57
|
+
cairo: set_source_color([:cyan])
|
58
|
+
cairo: set_line_width([2.0])
|
59
|
+
cairo: stroke([])
|
60
|
+
pango: ellipsized?([])
|
61
|
+
cairo: restore([])
|
62
|
+
cairo: save([])
|
63
|
+
cairo: set_source_color(["black"])
|
64
|
+
cairo: translate([400, 0])
|
65
|
+
cairo: rotate([0])
|
66
|
+
cairo: move_to([0, 0])
|
67
|
+
pango: font_description=([MockDouble])
|
68
|
+
pango: text=(["This :tool: aligns on the bottom properly. :purse:"])
|
69
|
+
pango: width=([184320])
|
70
|
+
pango: height=([307200])
|
71
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
72
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
73
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
74
|
+
pango: justify=([false])
|
75
|
+
pango: markup=(["This :tool: aligns on the bottom properly. :purse:"])
|
76
|
+
cairo: move_to([0, 0.0])
|
77
|
+
cairo: move_to([0, 0.0])
|
78
|
+
cairo: show_pango_layout([MockDouble])
|
79
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
80
|
+
cairo: set_source_color([:green])
|
81
|
+
cairo: set_line_width([2.0])
|
82
|
+
cairo: stroke([])
|
83
|
+
pango: ellipsized?([])
|
84
|
+
cairo: restore([])
|
85
|
+
cairo: save([])
|
86
|
+
cairo: set_source_color(["black"])
|
87
|
+
cairo: translate([600, 0])
|
88
|
+
cairo: rotate([0])
|
89
|
+
cairo: move_to([0, 0])
|
90
|
+
pango: font_description=([MockDouble])
|
91
|
+
pango: text=(["Wrapping multiples: These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"])
|
92
|
+
pango: width=([184320])
|
93
|
+
pango: height=([307200])
|
94
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
95
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
96
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
97
|
+
pango: justify=([false])
|
98
|
+
pango: markup=(["Wrapping multiples: These are 1 :tool::tool::tool: and these are multiple :tool::tool: :tool::tool:"])
|
99
|
+
cairo: move_to([0, 0.0])
|
100
|
+
cairo: move_to([0, 0.0])
|
101
|
+
cairo: show_pango_layout([MockDouble])
|
102
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
103
|
+
cairo: set_source_color([:cyan])
|
104
|
+
cairo: set_line_width([2.0])
|
105
|
+
cairo: stroke([])
|
106
|
+
pango: ellipsized?([])
|
107
|
+
cairo: restore([])
|
108
|
+
cairo: save([])
|
109
|
+
cairo: set_source_color(["black"])
|
110
|
+
cairo: translate([0, 320])
|
111
|
+
cairo: rotate([0])
|
112
|
+
cairo: move_to([0, 0])
|
113
|
+
pango: font_description=([MockDouble])
|
114
|
+
pango: text=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"])
|
115
|
+
pango: width=([184320])
|
116
|
+
pango: height=([307200])
|
117
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
118
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
119
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
120
|
+
pango: justify=([true])
|
121
|
+
pango: markup=([":tool:Justify will :tool: work too, and :purse: with more words just for fun"])
|
122
|
+
cairo: move_to([0, 0.0])
|
123
|
+
cairo: move_to([0, 0.0])
|
124
|
+
cairo: show_pango_layout([MockDouble])
|
125
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
126
|
+
cairo: set_source_color([:magenta])
|
127
|
+
cairo: set_line_width([2.0])
|
128
|
+
cairo: stroke([])
|
129
|
+
pango: ellipsized?([])
|
130
|
+
cairo: restore([])
|
131
|
+
cairo: save([])
|
132
|
+
cairo: set_source_color(["black"])
|
133
|
+
cairo: translate([200, 320])
|
134
|
+
cairo: rotate([0])
|
135
|
+
cairo: move_to([0, 0])
|
136
|
+
pango: font_description=([MockDouble])
|
137
|
+
pango: text=(["Right-aligned works :tool: with :health: and :purse:"])
|
138
|
+
pango: width=([184320])
|
139
|
+
pango: height=([307200])
|
140
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
141
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
142
|
+
pango: alignment=([#<Pango::Layout::Alignment right>])
|
143
|
+
pango: justify=([false])
|
144
|
+
pango: markup=(["Right-aligned works :tool: with :health: and :purse:"])
|
145
|
+
cairo: move_to([0, 0.0])
|
146
|
+
cairo: move_to([0, 0.0])
|
147
|
+
cairo: show_pango_layout([MockDouble])
|
148
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
149
|
+
cairo: set_source_color([:magenta])
|
150
|
+
cairo: set_line_width([2.0])
|
151
|
+
cairo: stroke([])
|
152
|
+
pango: ellipsized?([])
|
153
|
+
cairo: restore([])
|
154
|
+
cairo: save([])
|
155
|
+
cairo: set_source_color(["black"])
|
156
|
+
cairo: translate([400, 320])
|
157
|
+
cairo: rotate([0])
|
158
|
+
cairo: move_to([0, 0])
|
159
|
+
pango: font_description=([MockDouble])
|
160
|
+
pango: text=([":tool:Center-aligned works :tool: with :health: and :purse:"])
|
161
|
+
pango: width=([184320])
|
162
|
+
pango: height=([307200])
|
163
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
164
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
165
|
+
pango: alignment=([#<Pango::Layout::Alignment center>])
|
166
|
+
pango: justify=([false])
|
167
|
+
pango: markup=([":tool:Center-aligned works :tool: with :health: and :purse:"])
|
168
|
+
cairo: move_to([0, 0])
|
169
|
+
cairo: move_to([0, 0])
|
170
|
+
cairo: show_pango_layout([MockDouble])
|
171
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
172
|
+
cairo: set_source_color([:magenta])
|
173
|
+
cairo: set_line_width([2.0])
|
174
|
+
cairo: stroke([])
|
175
|
+
pango: ellipsized?([])
|
176
|
+
cairo: restore([])
|
177
|
+
cairo: save([])
|
178
|
+
cairo: set_source_color(["black"])
|
179
|
+
cairo: translate([600, 320])
|
180
|
+
cairo: rotate([0])
|
181
|
+
cairo: move_to([0, 0])
|
182
|
+
pango: font_description=([MockDouble])
|
183
|
+
pango: text=(["Markup --- and typography replacements --- with \":tool:\" icons <i>won't</i> fail"])
|
184
|
+
pango: markup=(["foo"])
|
185
|
+
pango: width=([184320])
|
186
|
+
pango: height=([307200])
|
187
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
188
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
|
189
|
+
pango: alignment=([#<Pango::Layout::Alignment center>])
|
190
|
+
pango: justify=([false])
|
191
|
+
pango: markup=(["foo"])
|
192
|
+
cairo: move_to([0, 0])
|
193
|
+
cairo: move_to([0, 0])
|
194
|
+
cairo: show_pango_layout([MockDouble])
|
195
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
196
|
+
cairo: set_source_color([:magenta])
|
197
|
+
cairo: set_line_width([2.0])
|
198
|
+
cairo: stroke([])
|
199
|
+
pango: ellipsized?([])
|
200
|
+
cairo: restore([])
|
201
|
+
surface: write_to_png(["_output/embed_00.png"])
|
202
|
+
cairo: antialias=(["subpixel"])
|
203
|
+
cairo: antialias=(["subpixel"])
|
204
|
+
cairo: antialias=(["subpixel"])
|
205
|
+
cairo: save([])
|
206
|
+
cairo: set_source_color(["black"])
|
207
|
+
cairo: translate([0, 0])
|
208
|
+
cairo: rotate([0])
|
209
|
+
cairo: move_to([0, 0])
|
210
|
+
pango font: size=([18432])
|
211
|
+
pango: font_description=([MockDouble])
|
212
|
+
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
213
|
+
pango: width=([184320])
|
214
|
+
pango: height=([307200])
|
215
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
216
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
217
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
218
|
+
pango: justify=([false])
|
219
|
+
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
220
|
+
cairo: move_to([0, 0.0])
|
221
|
+
cairo: move_to([0, 0.0])
|
222
|
+
cairo: show_pango_layout([MockDouble])
|
223
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
224
|
+
cairo: set_source_color([:cyan])
|
225
|
+
cairo: set_line_width([2.0])
|
226
|
+
cairo: stroke([])
|
227
|
+
pango: ellipsized?([])
|
228
|
+
cairo: restore([])
|
229
|
+
cairo: save([])
|
230
|
+
cairo: set_source_color(["black"])
|
231
|
+
cairo: translate([0, 0])
|
232
|
+
cairo: rotate([0])
|
233
|
+
cairo: move_to([0, 0])
|
234
|
+
pango font: size=([26624])
|
235
|
+
pango: font_description=([MockDouble])
|
236
|
+
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
237
|
+
pango: width=([184320])
|
238
|
+
pango: height=([307200])
|
239
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
240
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
241
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
242
|
+
pango: justify=([false])
|
243
|
+
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
244
|
+
cairo: move_to([0, 0.0])
|
245
|
+
cairo: move_to([0, 0.0])
|
246
|
+
cairo: show_pango_layout([MockDouble])
|
247
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
248
|
+
cairo: set_source_color([:cyan])
|
249
|
+
cairo: set_line_width([2.0])
|
250
|
+
cairo: stroke([])
|
251
|
+
pango: ellipsized?([])
|
252
|
+
cairo: restore([])
|
253
|
+
cairo: save([])
|
254
|
+
cairo: set_source_color(["black"])
|
255
|
+
cairo: translate([0, 0])
|
256
|
+
cairo: rotate([0])
|
257
|
+
cairo: move_to([0, 0])
|
258
|
+
pango font: size=([35840])
|
259
|
+
pango: font_description=([MockDouble])
|
260
|
+
pango: text=(["Take 1 :tool: and gain 2 :health:."])
|
261
|
+
pango: width=([184320])
|
262
|
+
pango: height=([307200])
|
263
|
+
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
|
264
|
+
pango: ellipsize=([#<Pango::Layout::EllipsizeMode none>])
|
265
|
+
pango: alignment=([#<Pango::Layout::Alignment left>])
|
266
|
+
pango: justify=([false])
|
267
|
+
pango: markup=(["Take 1 :tool: and gain 2 :health:."])
|
268
|
+
cairo: move_to([0, 0.0])
|
269
|
+
cairo: move_to([0, 0.0])
|
270
|
+
cairo: show_pango_layout([MockDouble])
|
271
|
+
cairo: rounded_rectangle([0, 0, 0, 0, 0, 0])
|
272
|
+
cairo: set_source_color([:cyan])
|
273
|
+
cairo: set_line_width([2.0])
|
274
|
+
cairo: stroke([])
|
275
|
+
pango: ellipsized?([])
|
276
|
+
cairo: restore([])
|
277
|
+
cairo: set_source([MockDouble, 0, 0])
|
278
|
+
cairo: paint([])
|
279
|
+
cairo: set_source([MockDouble, 100, 0])
|
280
|
+
cairo: paint([])
|
281
|
+
cairo: set_source([MockDouble, 200, 0])
|
282
|
+
cairo: paint([])
|
283
|
+
surface: write_to_png(["_output/embed_multisheet_00.png"])
|