From 2760a064b5316bb363e8207b3cb9c4854f49c950 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 5 Nov 2015 18:27:42 +0800 Subject: [PATCH] Fix default style, version 0.3.1 --- CHANGELOG.md | 2 +- lib/rucaptcha.rb | 2 +- lib/rucaptcha/captcha.rb | 2 +- lib/rucaptcha/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3702dd4..5b07c3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -0.3.0 +0.3.1 ----- - More complex Image render: compact text, strong lines, +/-5 rotate... diff --git a/lib/rucaptcha.rb b/lib/rucaptcha.rb index f5531c6..3535f61 100644 --- a/lib/rucaptcha.rb +++ b/lib/rucaptcha.rb @@ -15,7 +15,7 @@ module RuCaptcha return @config if defined?(@config) @config = Configuration.new @config.len = 4 - @config.font_size = 48 + @config.font_size = 45 @config.implode = 0.4 @config.cache_limit = 100 @config diff --git a/lib/rucaptcha/captcha.rb b/lib/rucaptcha/captcha.rb index 1b22a6a..d376fe8 100644 --- a/lib/rucaptcha/captcha.rb +++ b/lib/rucaptcha/captcha.rb @@ -52,7 +52,7 @@ module RuCaptcha convert -size #{size} \ -strokewidth #{stroke_width} \ #{line_opts.join(' ')} \ - -pointsize #{font_size} -weight 700 \ + -pointsize #{font_size} -weight 500 \ #{text_opts.join(' ')} \ -wave #{rand(2) + 3}x#{rand(2) + 1} \ -rotate #{rand(10) - 5} \ diff --git a/lib/rucaptcha/version.rb b/lib/rucaptcha/version.rb index 880e0f8..65dda6b 100644 --- a/lib/rucaptcha/version.rb +++ b/lib/rucaptcha/version.rb @@ -1,3 +1,3 @@ module RuCaptcha - VERSION = '0.3.0' + VERSION = '0.3.1' end