From a8f3b15d8a20d004a7cbb64e0b568ff6f31e0335 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 5 Nov 2015 16:21:06 +0800 Subject: [PATCH] Font size 90% of height --- lib/rucaptcha/captcha.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rucaptcha/captcha.rb b/lib/rucaptcha/captcha.rb index e0c5002..e291029 100644 --- a/lib/rucaptcha/captcha.rb +++ b/lib/rucaptcha/captcha.rb @@ -18,7 +18,7 @@ module RuCaptcha # Create Captcha image by code def create(code) size = "#{RuCaptcha.config.width}x#{RuCaptcha.config.height}" - font_size = (RuCaptcha.config.height * 0.8).to_i + font_size = (RuCaptcha.config.height * 0.9).to_i half_width = RuCaptcha.config.width / 2 half_height = RuCaptcha.config.height / 2 line_color = rand_color