Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7048383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:53:07+00:00 2026-05-28T02:53:07+00:00

I have an array of simple strings (simple meaning 1-4 words, not in complete

  • 0

I have an array of simple strings (simple meaning 1-4 words, not in complete sentences) that I want to distribute “evenly” within an arbitrary shape.

By “evenly” I mean that the text does whatever it can to not overlap other text, but all the strings aren’t bunched up in one particular location. I don’t mean that the text has to be the max distance from eachother, I just want to fill the space as best as I can.

Example:

I have the following array:

var array = new [] {"#WhatIDidLastWeek", "Salena Gomez", "#WWF", "#IThinkOomf", "CES" };

and I have a circle of radius 600px that I want every string in the array to be inside that circle and be spaced far enough appart that they don’t overlap and that the general shape of the circle is apparent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:53:08+00:00Added an answer on May 28, 2026 at 2:53 am

    The first thing that comes to mind is to use some sort of MeasureString call in whatever environment you’re working with.

    The basic idea is measure each word to see if it will fit in the allotted space. If it doesn’t fit, move it down to the next “line”. The hard part will be what to do when you run out of space to fit all the words.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array of strings. Not sure if there is simple way to
I have a simple 2D array of strings and I would like to stuff
I have a pretty simple problem. Basically I have an array called $list that
I have this simple function which I pass in an array of strings: function
I have a large array in PHP. It contains strings that are split into
I have a one-dimensional array of strings in JavaScript that I'd like to turn
I have a simple UITableViewController in a UINavigationController that displays a list of strings
I have a simple application that adds about 7 million short strings to a
I have a .NET class which holds a simple array of strings available via
I have a simple ruby question. I have an array of strings. I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.