Re:Show HN: Inspiration to your desktop background – Powered...
by bemmu on Friday March 21, 2014 @11:11AM
(#7442726)
How would you solve choosing the right font size though? It should be such that the longest line perfectly fits the width.
[ Parent
| on HN ]
Re:Show HN: Inspiration to your desktop background – Powered...
by lotsofmangos on Saturday March 22, 2014 @04:23PM
(#7450726)
generate an imagemagick text label at a certain font size, then pipe it to identify -size , pull the width out of that and then use the result to calculate the required font size which you then use in a second textlabel
edit - or just generate a large text label to start with, then scale it to whatever is required