Page MenuHome

Scale to Fit Text Box Option fails when using single word
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: Intel(R) Iris(R) Plus Graphics 640 Intel 4.5.0 - Build 24.20.100.6293

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: rB77d23b0bd76f
Worked: (optional)

Short description of error
Scale to Fit option, found when using text box, fails when using single word with no space character. As soon as a single space character is added at the end of the word, it continues working as expected. Doesn't work if space is placed before the word.

Without space character

With space character

Exact steps for others to reproduce the error

  • Add new text object
  • Select text box size X to something other than 0. For example 3m
  • Set Overflow option to "Scale to Fit"
  • Type in single longer word with no space character.

or

  • Open attached file
  • Type a space between words

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Apr 22 2020, 1:51 PM
Germano Cavalcante (mano-wii) updated the task description. (Show Details)
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I can still reproduce this bug when only using one single word (v.2.92)

2.92 doesn't contain the fix.

Please check if this is fixed in 1 of the recent daily builds.

This bug has not been fixed in 3.0.0

Can you explain in detail what you expect and what you get? I'm trying to redo the bug and this feature is working as I would expect.

rB83d9ba341e5a31c9edaae00786e8b461c62d5c5f resolved the bug that the text need to have word-wrapping for scale-to-fit to be used. Which as you noticed, word wrapping isn't applied when there are no spaces.

Beyond this, I'm not sure what you mean when you say it's not fixed, can you give details?

Campbell Barton (campbellbarton) reopened this task as Needs Information from User.Jan 21 2022, 5:57 AM

Well if i follow the procedure given above the scale to fit option doesn't work let me show you:
when i try to impose dimensions on my text box and i have a single word written it doesn't scale to fit


as soon as I add a space between the two words the scale to fit option works:

Maybe I didn't understand the bug in the first place and, in this case is there any ways to word wrap a single word ?

This requires the box to have a non-zero Y height, not part of this report or the sample file.

Could you report a separate bug please?