mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-26 04:23:14 -05:00
FilterChallenge: use bold font
This commit is contained in:
parent
0c48f8fbd1
commit
bfc7174e2a
@ -47,7 +47,7 @@ class FilterChallenge extends ChallengeProvider {
|
||||
g.setColor(Color.WHITE)
|
||||
g.fillRect(0, 0, canvas.getWidth, canvas.getHeight)
|
||||
g.setColor(Color.BLACK)
|
||||
val font = new Font("Serif", Font.PLAIN, fontHeight)
|
||||
val font = new Font("Serif", Font.BOLD, fontHeight)
|
||||
g.setFont(font)
|
||||
val stringWidth = g.getFontMetrics().stringWidth(secret)
|
||||
val scaleX = if (stringWidth > width) width/(stringWidth.toDouble) else 1d
|
||||
|
Loading…
x
Reference in New Issue
Block a user