18
3
Sometimes when I'm bored, I take some text and fill the "holes" in the letters. But isn't filling the holes the most boring thing you can do? I think we should automate it, so we could use our time better.
Standard code-golf rules apply.
Input
A string containing sequence of alphanumeric characters (a-z, A-Z, 0-9) and spaces.
Output
Image containing string rendered and holes on it filled. You can use any human readable font as long as it still requires filling the holes. You can either save image to file i.png
(in png format) or just display the image.
Image properties:
- Black text
- White or transparent background
- Padding:
- The dimensions of the image can be maximum two times the dimensions of the text
- Padding should be same color as background, either white or transparent
Example
Input: Example text
2Related. (same challenge, different scoring.) – Martin Ender – 2016-02-13T15:43:30.447
Is there a minimum font size for the letters (in pixels)? – Martin Ender – 2016-02-13T15:44:11.910
Yes, lets say it is 12px – Hannes Karppila – 2016-02-13T18:57:18.537