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:
Seh Hui, Leong
2017-10-05 16:37:46 -04:00
committed by Andy Meneely
parent 06970b77a6
commit f800c131ff
43 changed files with 144 additions and 111 deletions
+3 -3
View File
@@ -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