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
@@ -7,11 +7,11 @@ def autoscale(str_array)
|
||||
str_array.map do | str |
|
||||
case str.length
|
||||
when 0..15
|
||||
32
|
||||
10.66
|
||||
when 16..20
|
||||
18
|
||||
6
|
||||
else
|
||||
12
|
||||
4
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user