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
@@ -6,8 +6,8 @@ Squib::Deck.new(width: 825, height: 1125, cards: 1) do
|
||||
rect x: 38, y: 38, width: 750, height: 1050, x_radius: 38, y_radius: 38
|
||||
rect x: 75, y: 75, width: 128, height: 128, x_radius: 25, y_radius: 25
|
||||
|
||||
text str: 'Mastermind', x: 220, y: 78, font: 'Arial 54'
|
||||
text str: 3, x: 75, y: 85, width: 128, font: 'Arial 72', align: :center
|
||||
text str: 'Mastermind', x: 220, y: 78, font: 'Arial 18'
|
||||
text str: 3, x: 75, y: 85, width: 128, font: 'Arial 24', align: :center
|
||||
|
||||
# TGC proof overlay (using alpha-transparency)
|
||||
png file: 'pokercard.png', x:0, y:0, alpha: 0.5
|
||||
|
||||
Reference in New Issue
Block a user