debug captcha: use a larger font

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-04-13 12:36:39 +05:30
parent 954399042c
commit 41bdbc7fbf
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class DebugCaptcha extends ChallengeProvider {
private def simpleText(text: String): Array[Byte] = {
val img = new BufferedImage(350, 100, BufferedImage.TYPE_INT_RGB)
val font = new Font("Arial", Font.ROMAN_BASELINE, 48)
val font = new Font("Arial", Font.ROMAN_BASELINE, 56)
val graphics2D = img.createGraphics()
val textLayout = new TextLayout(text, font, graphics2D.getFontRenderContext())
HelperFunctions.setRenderingHints(graphics2D)