make text-size decrease use increments of .1 (makes for larger / more readable text)

This commit is contained in:
Paul Molodowitch 2013-12-23 14:36:08 -08:00
parent 896c86f349
commit c06d2563b0

View File

@ -255,7 +255,7 @@ class DominionTabs:
width = self.nameWidth(name, fontSize) width = self.nameWidth(name, fontSize)
while width > textWidth and fontSize > 8: while width > textWidth and fontSize > 8:
fontSize -= 1 fontSize -= .01
#print 'decreasing font size for tab of',name,'now',fontSize #print 'decreasing font size for tab of',name,'now',fontSize
width = self.nameWidth(name, fontSize) width = self.nameWidth(name, fontSize)
tooLong = width > textWidth tooLong = width > textWidth