squib 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +14 -0
  3. data/.travis.yml +4 -0
  4. data/CHANGELOG.md +201 -175
  5. data/Gemfile +2 -4
  6. data/README.md +650 -645
  7. data/RELEASE TODO.md +18 -18
  8. data/Rakefile +106 -99
  9. data/appveyor.yml +29 -0
  10. data/lib/squib.rb +32 -32
  11. data/lib/squib/api/background.rb +20 -20
  12. data/lib/squib/api/data.rb +131 -131
  13. data/lib/squib/api/image.rb +108 -90
  14. data/lib/squib/api/save.rb +151 -149
  15. data/lib/squib/api/settings.rb +35 -35
  16. data/lib/squib/api/shapes.rb +255 -230
  17. data/lib/squib/api/text.rb +65 -65
  18. data/lib/squib/api/text_embed.rb +96 -96
  19. data/lib/squib/args/arg_loader.rb +138 -138
  20. data/lib/squib/args/box.rb +54 -54
  21. data/lib/squib/args/card_range.rb +32 -32
  22. data/lib/squib/args/color_validator.rb +11 -11
  23. data/lib/squib/args/coords.rb +32 -32
  24. data/lib/squib/args/dir_validator.rb +16 -16
  25. data/lib/squib/args/draw.rb +92 -92
  26. data/lib/squib/args/embed_adjust.rb +25 -25
  27. data/lib/squib/args/embed_key.rb +17 -17
  28. data/lib/squib/args/hand_special.rb +37 -37
  29. data/lib/squib/args/import.rb +39 -39
  30. data/lib/squib/args/input_file.rb +37 -37
  31. data/lib/squib/args/paint.rb +43 -43
  32. data/lib/squib/args/paragraph.rb +116 -115
  33. data/lib/squib/args/save_batch.rb +63 -60
  34. data/lib/squib/args/scale_box.rb +53 -53
  35. data/lib/squib/args/sheet.rb +72 -72
  36. data/lib/squib/args/showcase_special.rb +38 -38
  37. data/lib/squib/args/svg_special.rb +37 -37
  38. data/lib/squib/args/transform.rb +60 -24
  39. data/lib/squib/args/typographer.rb +117 -117
  40. data/lib/squib/card.rb +66 -67
  41. data/lib/squib/conf.rb +131 -117
  42. data/lib/squib/constants.rb +12 -178
  43. data/lib/squib/deck.rb +113 -113
  44. data/lib/squib/graphics/cairo_context_wrapper.rb +113 -99
  45. data/lib/squib/graphics/gradient_regex.rb +46 -46
  46. data/lib/squib/graphics/hand.rb +42 -42
  47. data/lib/squib/graphics/image.rb +103 -76
  48. data/lib/squib/graphics/save_doc.rb +103 -103
  49. data/lib/squib/graphics/save_images.rb +39 -33
  50. data/lib/squib/graphics/shapes.rb +135 -119
  51. data/lib/squib/graphics/showcase.rb +85 -85
  52. data/lib/squib/graphics/text.rb +176 -176
  53. data/lib/squib/layout_parser.rb +91 -91
  54. data/lib/squib/layouts/economy.yml +85 -85
  55. data/lib/squib/layouts/fantasy.yml +101 -101
  56. data/lib/squib/layouts/hand.yml +62 -62
  57. data/lib/squib/layouts/playing-card.yml +35 -35
  58. data/lib/squib/layouts/tuck_box.yml +45 -45
  59. data/lib/squib/project_template/IDEAS.md +22 -0
  60. data/lib/squib/project_template/PLAYTESTING.md +26 -0
  61. data/lib/squib/project_template/RULES.md +21 -0
  62. data/lib/squib/project_template/config.yml +49 -45
  63. data/lib/squib/sample_helpers.rb +34 -0
  64. data/lib/squib/version.rb +10 -10
  65. data/samples/autoscale_font/_autoscale_font.rb +29 -0
  66. data/samples/color_shortcuts.rb +6 -6
  67. data/samples/csv_import.rb +26 -26
  68. data/samples/custom-config.yml +5 -5
  69. data/samples/custom_config.rb +18 -18
  70. data/samples/draw_shapes.rb +48 -45
  71. data/samples/embed_text.rb +88 -88
  72. data/samples/excel.rb +55 -55
  73. data/samples/hand.rb +24 -24
  74. data/samples/images/_images.rb +104 -0
  75. data/samples/intro/01_hello.rb +9 -0
  76. data/samples/intro/02_options.rb +15 -0
  77. data/samples/intro/03_layout.rb +12 -0
  78. data/samples/intro/04_arrays.rb +16 -0
  79. data/samples/intro/05_excel.rb +15 -0
  80. data/samples/layouts.rb +62 -62
  81. data/samples/layouts_builtin.rb +51 -51
  82. data/samples/load_images.rb +99 -78
  83. data/samples/load_images_config.yml +1 -0
  84. data/samples/quantity_explosion.csv +2 -2
  85. data/samples/ranges.rb +64 -64
  86. data/samples/sample.csv +2 -2
  87. data/samples/saves.rb +9 -1
  88. data/samples/sprites.png +0 -0
  89. data/samples/text/_text.rb +46 -0
  90. data/samples/text_options.rb +102 -102
  91. data/spec/api/api_data_spec.rb +117 -117
  92. data/spec/api/api_settings_spec.rb +37 -37
  93. data/spec/args/box_spec.rb +127 -127
  94. data/spec/args/draw_spec.rb +101 -95
  95. data/spec/args/embed_key_spec.rb +13 -13
  96. data/spec/args/input_file_spec.rb +21 -21
  97. data/spec/args/paint_spec.rb +21 -21
  98. data/spec/args/paragraph_spec.rb +152 -152
  99. data/spec/args/range_spec.rb +40 -40
  100. data/spec/args/save_batch_spec.rb +51 -51
  101. data/spec/args/scale_box_spec.rb +71 -71
  102. data/spec/args/sheet_spec.rb +58 -58
  103. data/spec/args/showcase_special_spec.rb +15 -15
  104. data/spec/args/transform_spec.rb +25 -0
  105. data/spec/card_spec.rb +11 -0
  106. data/spec/conf_spec.rb +13 -3
  107. data/spec/data/conf/unrecognized.yml +4 -0
  108. data/spec/data/csv/qty.csv +2 -2
  109. data/spec/data/csv/qty_named.csv +2 -2
  110. data/spec/data/csv/with_spaces.csv +2 -2
  111. data/spec/data/samples/autoscale_font.rb.txt +84 -84
  112. data/spec/data/samples/basic.rb.txt +227 -209
  113. data/spec/data/samples/config_text_markup.rb.txt +72 -72
  114. data/spec/data/samples/csv_import.rb.txt +213 -213
  115. data/spec/data/samples/custom_config.rb.txt +57 -48
  116. data/spec/data/samples/draw_shapes.rb.txt +555 -3
  117. data/spec/data/samples/embed_text.rb.txt +283 -283
  118. data/spec/data/samples/excel.rb.txt +661 -661
  119. data/spec/data/samples/gradients.rb.txt +77 -79
  120. data/spec/data/samples/hand.rb.txt +538 -538
  121. data/spec/data/samples/hello_world.rb.txt +36 -36
  122. data/spec/data/samples/load_images.rb.txt +170 -0
  123. data/spec/data/samples/portrait-landscape.rb.txt +51 -49
  124. data/spec/data/samples/ranges.rb.txt +472 -460
  125. data/spec/data/samples/saves.rb.txt +810 -801
  126. data/spec/data/samples/showcase.rb.txt +5926 -5910
  127. data/spec/data/samples/text_options.rb.txt +1125 -1125
  128. data/spec/data/samples/tgc_proofs.rb.txt +95 -81
  129. data/spec/graphics/cairo_context_wrapper_spec.rb +104 -84
  130. data/spec/graphics/graphics_save_doc_spec.rb +67 -67
  131. data/spec/samples/diff-with-css.example.html +39 -0
  132. data/spec/samples/expected/load_images_00.png +0 -0
  133. data/spec/samples/expected/shape_00.png +0 -0
  134. data/spec/samples/run_samples_spec.rb +17 -0
  135. data/spec/samples/samples_regression_spec.rb +72 -82
  136. data/spec/spec_helper.rb +9 -1
  137. data/squib.gemspec +49 -48
  138. data/squib.sublime-project +42 -42
  139. metadata +94 -48
  140. 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"])