Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Creating a broadside – How to make line widths equal, with multiple text sizes?

Return to Member Forum

  • Author
    Posts
    • #63279

      I'm not even sure how to summarize this question. I want to make a boradside, as in this example:

      If I have all the text in one paragraph/one text frame, with center-aligned text, is there an easy way to make each line span the width of the frame, no matter the point size of the text?

    • #63371
      Anonymous
      Inactive

      Not with center-align.

      Try the “Justify all lines” in the paragraph panel. You may still have to manually kern or customize the font width every line depending on the effect you want to achieve.

      Vin

    • #63414

      I think my question was not very specific. I want the line width to be the same, and the point size to varry accordingly. So if I have COW MILKER (10 characters) on one line, and MEN OF LARGE OR SMALL CAPITAL (29 characters) on another, I want the point size to increase or decrease to fit the line proportionally.

    • #63449
      Tim Hughes
      Member

      Are you asking how ID will do this for you?

      It won't, you will need to adjust the sizes yourself, it's called setting type.

    • #63450

      You might want to familiarize yourself with the default “1 point larger / 1 point smaller” hotkeys: Ctrl+Shift+<, Ctrl+Shift+> — “Cmd” instead of “Ctrl” on the Mac.

      Also note that your example does not have all of its lines fully filled (and is this a historical example? it contains a typo: 'Achinng')

      But to get you started :) here is a little Javascript, cobbled together in a few minutes. Select a text frame and run the script to make each paragraph fit on a single line. It works on each paragraph, separated by hard returns. It depends on the number of lines inside a paragraph, so it does not work at all with forced line breaks (Shift+Enter): no matter how small the type gets, the text would never 'fit' on a single line!

      if (app.selection[0] instanceof TextFrame)
      {
      par = app.selection[0].paragraphs;
      for (i=par.length-1; i>=0; i-=1)
      {
      fit_unto_line (par[i]);
      }
      }

      function fit_unto_line (a_par)
      {
      if (a_par.contents[0] == 'r' || a_par.contents.indexOf('n') >= 0)
      return;

      var halve = a_par.characters[0].pointSize/2;

      while (halve > 0.05)
      {
      while (a_par.lines.length == 1)
      a_par.pointSize += halve;
      halve /= 2;
      while (a_par.lines.length > 1)
      a_par.pointSize -= halve;
      halve /= 2;
      }
      }

    • #63451
      Tim Hughes
      Member

      Addendum to my last post:

      Unless someone has a script that can atomate this process.

      :) Good work Jongware.

      I do recommend doing it by hand though it'll give you a nice exercise in manipulating type

    • #63452

      The script helps, but finding a nice combination of font and size for each line sure is an interesting exercise!

Viewing 6 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads