As a point of interest to monks trying to solve this, the dimensions of a character in the <code> font on my screen are: 7 pixels wide, 12 pixels from baseline to baseline (that's counting from the first pixel below the baseline to the first pixel above the baseline of the next line). So a square on screen is 12x7 in characters. I got these numbers by zooming in on a screen shot. YMMV.

############ ############ ############ ############ <-- 12x7 ############ ############ ############

If I were trying to write this, I'd probably go a brute force route first. Count the characters, estimate the size of a circle that would encompass them, and then start with a circle somewhat larger than that. I'd loop over circles of progressively smaller sizes. At each size, I'd try to break the lines to (handwave ahead) fit the edges of the circle and measure how close I get. Whatever formatting gets closest wins. I'd be tempted to insert an extra space between some words to get the edges to come out right (as with fully justified text).


In reply to Re: Round tuits via Text::Autoformat or other ways by kyle
in thread Round tuits via Text::Autoformat or other ways by sg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.