Zum Hauptinhalt gehen

Suche

Suche

Dynamically Matching Fontsize In Two Text Boxes

Kommentare

3 Kommentare

  • Avatar
    Domingo Rodriguez
    Moderator

    Are you able to size both text objects dynamically via VBScript, rather than having the first one auto-sizing via the "Autosize" feature? You might need to first read the content for the upper text object and then decide what font size you need to select for both the upper and bottom text object...

    0
  • Avatar
    Legacy Poster

    As long as I can get both boxes to be the same font size based off the first box font size. The text in the first box will always be longer, that is why it is the one driving the font size of the second.

     

    There is no measuretext option is vbscript. How would I determine the maximum font size I can use to fix inside a specific area.

    0
  • Avatar
    Domingo Rodriguez
    Moderator

    What I meant is to count the number of characters the text will have, then make a predefined decision. E.g. if number of characters is between 10 and 15, set font size to 42. Not the best of solutions, but worth to try...

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.