From e1a2a2daa610f3a29bc3ce63116f16adf94c0da9 Mon Sep 17 00:00:00 2001 From: Hsiaoming Yang Date: Wed, 21 Jun 2017 17:46:28 +0900 Subject: [PATCH] Make image font sizes smaller --- .travis.yml | 1 - captcha/image.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 083a45d..544c2de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - - "2.6" - "2.7" - "3.3" - "3.4" diff --git a/captcha/image.py b/captcha/image.py index ab65ee4..dec901f 100644 --- a/captcha/image.py +++ b/captcha/image.py @@ -33,7 +33,8 @@ else: table = [] for i in range( 256 ): table.append( i * 1.97 ) - + + class _Captcha(object): def generate(self, chars, format='png'): """Generate an Image Captcha of the given characters. @@ -109,7 +110,7 @@ class ImageCaptcha(_Captcha): self._width = width self._height = height self._fonts = fonts or DEFAULT_FONTS - self._font_sizes = font_sizes or (46, 58, 68) + self._font_sizes = font_sizes or (42, 50, 56) self._truefonts = [] @property