Respect DPI settings in text, add pt unit
This has the compatibility impact that all font sizes should be divided by 3 to maintain their same sizes. Based on PR #225. Thanks @felixleong!! Conflicts: bin/squib lib/squib/graphics/text.rb
This commit is contained in:
committed by
Andy Meneely
parent
06970b77a6
commit
f800c131ff
@@ -60,7 +60,7 @@ cairo: set_source_color(["black"])
|
||||
cairo: translate([10, 10])
|
||||
cairo: rotate([0])
|
||||
cairo: move_to([0, 0])
|
||||
pango font: size=([32768])
|
||||
pango font: size=([10915.84])
|
||||
pango: font_description=([MockDouble])
|
||||
pango: text=(["Short & Big"])
|
||||
pango: width=([286720])
|
||||
@@ -82,7 +82,7 @@ cairo: set_source_color(["black"])
|
||||
cairo: translate([10, 10])
|
||||
cairo: rotate([0])
|
||||
cairo: move_to([0, 0])
|
||||
pango font: size=([18432])
|
||||
pango font: size=([6144])
|
||||
pango: font_description=([MockDouble])
|
||||
pango: text=(["Medium Length & Size"])
|
||||
pango: width=([286720])
|
||||
@@ -104,7 +104,7 @@ cairo: set_source_color(["black"])
|
||||
cairo: translate([10, 10])
|
||||
cairo: rotate([0])
|
||||
cairo: move_to([0, 0])
|
||||
pango font: size=([12288])
|
||||
pango font: size=([4096])
|
||||
pango: font_description=([MockDouble])
|
||||
pango: text=(["Super duper long string here, therefore a smaller font."])
|
||||
pango: width=([286720])
|
||||
|
||||
Reference in New Issue
Block a user