mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-02-04 16:05:57 -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.setColor(Color.WHITE)
|
||||||
g.fillRect(0, 0, canvas.getWidth, canvas.getHeight)
|
g.fillRect(0, 0, canvas.getWidth, canvas.getHeight)
|
||||||
g.setColor(Color.BLACK)
|
g.setColor(Color.BLACK)
|
||||||
val font = new Font("Serif", Font.PLAIN, fontHeight)
|
val font = new Font("Serif", Font.BOLD, fontHeight)
|
||||||
g.setFont(font)
|
g.setFont(font)
|
||||||
val stringWidth = g.getFontMetrics().stringWidth(secret)
|
val stringWidth = g.getFontMetrics().stringWidth(secret)
|
||||||
val scaleX = if (stringWidth > width) width/(stringWidth.toDouble) else 1d
|
val scaleX = if (stringWidth > width) width/(stringWidth.toDouble) else 1d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user