Scale to Fit overflows into a second line #89241

Closed
opened 2021-06-17 17:46:46 +02:00 by J. W. Sargent · 11 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.63

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: 84da05a8b8
Worked: No known working builds

Short description of error

image.png

Scale to Fit text boxes will unexpectedly overflow onto a second line when text font scale is less than 1 (Font > Transform > Size = 0.5)

image.png

This error is easily reproduced when following the same steps, however it is difficult to find the steps that lead to a new instance of this bug.

Exact steps for others to reproduce the error
The linked .blend file should open displaying this bug, however if this is not the case you can reproduce by choosing a confirmed font:

  • Rubik
  • Arial
    and many others

Type in a text within the bounds of the text box and then simply add one character at a time until you encounter the error
For my testing I was using "SOME TEXT HERE" and adding "a" until I got a line overflow.

In my example, one character more or less and it acts as expected.

image.png
image.png
image.png

Sadly this bug appears to depend on font, starting text, number of characters added, font size, and text box size. With so many variables, I have had a difficult time pinning down the root issue.

scale-to-fit_issue.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.63 **Blender Version** Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: `84da05a8b8` Worked: No known working builds **Short description of error** ![image.png](https://archive.blender.org/developer/F10178009/image.png) Scale to Fit text boxes will unexpectedly overflow onto a second line when text font scale is less than 1 (Font > Transform > Size = 0.5) ![image.png](https://archive.blender.org/developer/F10178012/image.png) This error is easily reproduced when following the same steps, however it is difficult to find the steps that lead to a new instance of this bug. **Exact steps for others to reproduce the error** The linked .blend file should open displaying this bug, however if this is not the case you can reproduce by choosing a confirmed font: - Rubik - Arial and many others Type in a text within the bounds of the text box and then simply add one character at a time until you encounter the error For my testing I was using "SOME TEXT HERE" and adding "a" until I got a line overflow. In my example, one character more or less and it acts as expected. ![image.png](https://archive.blender.org/developer/F10178016/image.png) ![image.png](https://archive.blender.org/developer/F10178025/image.png) ![image.png](https://archive.blender.org/developer/F10178021/image.png) Sadly this bug appears to depend on font, starting text, number of characters added, font size, and text box size. With so many variables, I have had a difficult time pinning down the root issue. [scale-to-fit_issue.blend](https://archive.blender.org/developer/F10178007/scale-to-fit_issue.blend)
Author

Added subscriber: @NoviceInDisguiseProductions

Added subscriber: @NoviceInDisguiseProductions
Member

Added subscriber: @Calra

Added subscriber: @Calra
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm the issue on Windows 10. Based on the blend file provided by the user.
Indeed it is hard to narrow down, after typing more characters, it does at times switches to overflow.

Was unable to reproduce by myself locally.

Can confirm the issue on Windows 10. Based on the blend file provided by the user. Indeed it is hard to narrow down, after typing more characters, it does at times switches to overflow. Was unable to reproduce by myself locally.
Author

Just confirming that this issue does NOT depend on text size setting as initially suspected.
I have now had it happen when that value was set to 1 or more.

Just confirming that this issue does NOT depend on text size setting as initially suspected. I have now had it happen when that value was set to 1 or more.

This issue was referenced by 85b28933f0

This issue was referenced by 85b28933f079e9841cca14044a80d791b7c2bbd1

This issue was referenced by 4f7dc4c918

This issue was referenced by 4f7dc4c91872b5d339e848066ee188a99df005f5

This issue was referenced by f801d40daf

This issue was referenced by f801d40dafc06be2c0827e1b858c84800f4ddad8

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Campbell Barton self-assigned this 2021-08-12 17:08:50 +02:00

This issue was referenced by e90aabdebf

This issue was referenced by e90aabdebfa1561daa8d7725b90a81014d46ebb2

This issue was referenced by 56f8d7c705

This issue was referenced by 56f8d7c7059728bad0fe087c291e4829398eab16
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#89241
No description provided.