spec/data/samples/text_options.rb.txt in squib-0.3.0 vs spec/data/samples/text_options.rb.txt in squib-0.4.0
- old
+ new
@@ -1,5 +1,8 @@
+cairo: antialias=(["subpixel"])
+cairo: antialias=(["subpixel"])
+cairo: antialias=(["subpixel"])
cairo: save([])
cairo: set_source_color([:white])
cairo: paint([])
cairo: restore([])
cairo: save([])
@@ -68,11 +71,11 @@
cairo: set_source_color([:black])
cairo: translate([250, 55])
cairo: rotate([0])
cairo: translate([-250, -55])
cairo: move_to([250, 55])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Thief"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -85,11 +88,11 @@
cairo: set_source_color([:black])
cairo: translate([250, 55])
cairo: rotate([0])
cairo: translate([-250, -55])
cairo: move_to([250, 55])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Grifter"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -102,11 +105,11 @@
cairo: set_source_color([:black])
cairo: translate([250, 55])
cairo: rotate([0])
cairo: translate([-250, -55])
cairo: move_to([250, 55])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Mastermind"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -119,11 +122,11 @@
cairo: set_source_color([:burnt_orange])
cairo: translate([65, 40])
cairo: rotate([0])
cairo: translate([-65, -40])
cairo: move_to([65, 40])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["1"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -136,11 +139,11 @@
cairo: set_source_color([:burnt_orange])
cairo: translate([65, 40])
cairo: rotate([0])
cairo: translate([-65, -40])
cairo: move_to([65, 40])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["2"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -153,11 +156,11 @@
cairo: set_source_color([:burnt_orange])
cairo: translate([65, 40])
cairo: rotate([0])
cairo: translate([-65, -40])
cairo: move_to([65, 40])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["3"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -170,11 +173,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 200])
cairo: rotate([0])
cairo: translate([-65, -200])
cairo: move_to([65, 200])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -187,11 +190,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 200])
cairo: rotate([0])
cairo: translate([-65, -200])
cairo: move_to([65, 200])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -204,11 +207,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 200])
cairo: rotate([0])
cairo: translate([-65, -200])
cairo: move_to([65, 200])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -221,11 +224,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 300])
cairo: rotate([0])
cairo: translate([-65, -300])
cairo: move_to([65, 300])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -238,11 +241,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 300])
cairo: rotate([0])
cairo: translate([-65, -300])
cairo: move_to([65, 300])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -255,11 +258,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 300])
cairo: rotate([0])
cairo: translate([-65, -300])
cairo: move_to([65, 300])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Font strings are expressive!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -272,11 +275,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 350])
cairo: rotate([0])
cairo: translate([-65, -350])
cairo: move_to([65, 350])
-pango: font_description=([])
+pango font: size=([16384])
+pango: font_description=([MockDouble])
pango: text=(["Font string sizes can be overridden per card."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -289,11 +293,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 350])
cairo: rotate([0])
cairo: translate([-65, -350])
cairo: move_to([65, 350])
-pango: font_description=([])
+pango font: size=([20480])
+pango: font_description=([MockDouble])
pango: text=(["Font string sizes can be overridden per card."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -306,11 +311,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 350])
cairo: rotate([0])
cairo: translate([-65, -350])
cairo: move_to([65, 350])
-pango: font_description=([])
+pango font: size=([24576])
+pango: font_description=([MockDouble])
pango: text=(["Font string sizes can be overridden per card."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -323,11 +329,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 400])
cairo: rotate([0])
cairo: translate([-65, -400])
cairo: move_to([65, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"])
pango: width=([307200])
pango: height=([128000])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -346,11 +352,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 400])
cairo: rotate([0])
cairo: translate([-65, -400])
cairo: move_to([65, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"])
pango: width=([307200])
pango: height=([128000])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -369,11 +375,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 400])
cairo: rotate([0])
cairo: translate([-65, -400])
cairo: move_to([65, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint"])
pango: width=([307200])
pango: height=([128000])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -392,11 +398,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 550])
cairo: rotate([0])
cairo: translate([-65, -550])
cairo: move_to([65, 550])
-pango: font_description=([])
+pango font: size=([16384])
+pango: font_description=([MockDouble])
pango: text=(["Ink extent return value"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -409,11 +416,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 550])
cairo: rotate([0])
cairo: translate([-65, -550])
cairo: move_to([65, 550])
-pango: font_description=([])
+pango font: size=([20480])
+pango: font_description=([MockDouble])
pango: text=(["Ink extent return value"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -426,11 +434,12 @@
cairo: set_source_color([:black])
cairo: translate([65, 550])
cairo: rotate([0])
cairo: translate([-65, -550])
cairo: move_to([65, 550])
-pango: font_description=([])
+pango font: size=([24576])
+pango: font_description=([MockDouble])
pango: text=(["Ink extent return value"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -470,11 +479,11 @@
cairo: set_source_color([:black])
cairo: translate([450, 400])
cairo: rotate([0])
cairo: translate([-450, -400])
cairo: move_to([450, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"])
pango: width=([286720])
pango: height=([184320])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -493,11 +502,11 @@
cairo: set_source_color([:black])
cairo: translate([450, 400])
cairo: rotate([0])
cairo: translate([-450, -400])
cairo: move_to([450, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"])
pango: width=([286720])
pango: height=([184320])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -516,11 +525,11 @@
cairo: set_source_color([:black])
cairo: translate([450, 400])
cairo: rotate([0])
cairo: translate([-450, -400])
cairo: move_to([450, 400])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42"])
pango: width=([286720])
pango: height=([184320])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -539,11 +548,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 625])
cairo: rotate([0])
cairo: translate([-65, -625])
cairo: move_to([65, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Text hints are also globally togglable!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -560,11 +569,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 625])
cairo: rotate([0])
cairo: translate([-65, -625])
cairo: move_to([65, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Text hints are also globally togglable!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -581,11 +590,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 625])
cairo: rotate([0])
cairo: translate([-65, -625])
cairo: move_to([65, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Text hints are also globally togglable!"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -602,11 +611,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 625])
cairo: rotate([0])
cairo: translate([-565, -625])
cairo: move_to([565, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["See? No hint here."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -619,11 +628,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 625])
cairo: rotate([0])
cairo: translate([-565, -625])
cairo: move_to([565, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["See? No hint here."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -636,11 +645,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 625])
cairo: rotate([0])
cairo: translate([-565, -625])
cairo: move_to([565, 625])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["See? No hint here."])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -653,11 +662,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 675])
cairo: rotate([0.2])
cairo: translate([-565, -675])
cairo: move_to([565, 675])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Rotated"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -674,11 +683,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 675])
cairo: rotate([0.2])
cairo: translate([-565, -675])
cairo: move_to([565, 675])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Rotated"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -695,11 +704,11 @@
cairo: set_source_color([:black])
cairo: translate([565, 675])
cairo: rotate([0.2])
cairo: translate([-565, -675])
cairo: move_to([565, 675])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["Rotated"])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
pango: alignment=([#<Pango::Layout::Alignment left>])
pango: justify=([false])
@@ -716,11 +725,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 700])
cairo: rotate([0])
cairo: translate([-65, -700])
cairo: move_to([65, 700])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This is left-justified text.\nWhat do you know about tweetle beetles? well... \nWhen tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle. AND... When beetles fight these battles in a bottle with their paddles and the bottle's on a poodle and the poodle's eating noodles... ...they call this a muddle puddle tweetle poodle beetle noodle bottle paddle battle."])
pango: width=([691200.0])
pango: height=([307200.0])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -735,11 +744,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 700])
cairo: rotate([0])
cairo: translate([-65, -700])
cairo: move_to([65, 700])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This is left-justified text.\nWhat do you know about tweetle beetles? well... \nWhen tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle. AND... When beetles fight these battles in a bottle with their paddles and the bottle's on a poodle and the poodle's eating noodles... ...they call this a muddle puddle tweetle poodle beetle noodle bottle paddle battle."])
pango: width=([691200.0])
pango: height=([307200.0])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -754,11 +763,11 @@
cairo: set_source_color([:black])
cairo: translate([65, 700])
cairo: rotate([0])
cairo: translate([-65, -700])
cairo: move_to([65, 700])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["This is left-justified text.\nWhat do you know about tweetle beetles? well... \nWhen tweetle beetles fight, it's called a tweetle beetle battle. And when they battle in a puddle, it's a tweetle beetle puddle battle. AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle. AND... When beetles battle beetles in a puddle paddle battle and the beetle battle puddle is a puddle in a bottle... ..they call this a tweetle beetle bottle puddle paddle battle muddle. AND... When beetles fight these battles in a bottle with their paddles and the bottle's on a poodle and the poodle's eating noodles... ...they call this a muddle puddle tweetle poodle beetle noodle bottle paddle battle."])
pango: width=([691200.0])
pango: height=([307200.0])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
pango: ellipsize=([#<Pango::Layout::EllipsizeMode end>])
@@ -773,11 +782,11 @@
cairo: set_source_color([:black])
cairo: translate([50, 1000])
cairo: rotate([0])
cairo: translate([-50, -1000])
cairo: move_to([50, 1000])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: markup=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: width=([768000])
pango: height=([102400])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
@@ -798,11 +807,11 @@
cairo: set_source_color([:black])
cairo: translate([50, 1000])
cairo: rotate([0])
cairo: translate([-50, -1000])
cairo: move_to([50, 1000])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: markup=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: width=([768000])
pango: height=([102400])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])
@@ -823,10 +832,10 @@
cairo: set_source_color([:black])
cairo: translate([50, 1000])
cairo: rotate([0])
cairo: translate([-50, -1000])
cairo: move_to([50, 1000])
-pango: font_description=([])
+pango: font_description=([MockDouble])
pango: text=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: markup=(["<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome"])
pango: width=([768000])
pango: height=([102400])
pango: wrap=([#<Pango::Layout::WrapMode word-char>])