Font size 90% of height

This commit is contained in:
Jason Lee 2015-11-05 16:21:06 +08:00
parent 0a0f272d9a
commit a8f3b15d8a
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module RuCaptcha
# Create Captcha image by code # Create Captcha image by code
def create(code) def create(code)
size = "#{RuCaptcha.config.width}x#{RuCaptcha.config.height}" 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_width = RuCaptcha.config.width / 2
half_height = RuCaptcha.config.height / 2 half_height = RuCaptcha.config.height / 2
line_color = rand_color line_color = rand_color