0weng fa448c3de9 Captcha: Fix text layer location calculation
ImageFont.getbbox() returns a tuple of coordinates for the text's
bounding box, (left, top, right, bottom).  Calculate the left margin
available in the image to place the text layer by subtracting the right
coordinate from the image width and adding it to the text's own left
margin. Similarly, to find the available top margin, subtract the bottom
coordinate from the image height and add it to the text's own top
margin.

Change-Id: I738816114be4c0a746733dc8e7ce5789aed57833
2024-11-19 13:05:55 -08:00
..
2020-03-30 17:31:33 +03:00
2022-04-20 08:07:44 +10:00
2010-05-15 11:55:15 +02:00
2016-02-22 06:50:34 +00:00
2020-03-05 11:17:04 +00:00
2020-03-05 11:17:04 +00:00
2020-03-05 11:17:04 +00:00
2021-06-29 19:24:27 +10:00