Inkscape.org
Beyond the Basics Dynamically resizing text to fit text box
  1. #1
    HoangJo Zen HoangJo Zen @hoangjo

    Hao!

    I'm trying to make my own trading cards and Inkscape's been very useful. I still have one issue regarding text for my card descriptions. Basically, I want the text in my textbox to automatically resize in order to fit the text box (or bounding box).

    However, I want the text to have a "default" size, so it doesn't grow to fit the text box. For example, this card has a very short description and it uses the default font. But this other card has a very long description, so the text size is reduced for the whole thing to fit.

    It's my first time posting, so hopefully I won't be breaking any rules or doing anything wrong. Any help is welcomed! :)

  2. #2
    Hum Hum @Hum
    *

    Your text will be the dimensions - width and length of the text. There is no "automatic resize". You can lock the text so that it proportionally scale up or down. Or, you can manually adjust its width or height. Or, do the same size changes using the Transform Panel in Inkscape. See Roy Torley's Tutorial  numer 7 at github below.

    https://roy-torley.github.io/Inkscape_Tutorial/Tutorial07/Tutorial07.html#:~:text=Choose%20Object%20%3E%20Transform%20to%20display,handles%20of%20its%20bounding%20box.

     

    My suggestion is to determine first the maximum width and height you would ever need. Note that width to height ratio. Then adjust your text (future text) accorfing to you needs.

    Then do some research on "flowing text into a frame". All the best to you.

  3. #3
    HoangJo Zen HoangJo Zen @hoangjo

    I'll be reading that tutorial with more time. At first glance it looks like it's meant for paths, but hopefully it will help me with what I need. Thank you for the reply!

    If it works or not, I shall post here again. :)

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Dynamically resizing text to fit text box