Skip to content

fix: #168 TextFrame.fit_text() method crashing on long words#416

Open
jackson-ml wants to merge 2 commits into
scanny:masterfrom
jackson-ml:break_long_word
Open

fix: #168 TextFrame.fit_text() method crashing on long words#416
jackson-ml wants to merge 2 commits into
scanny:masterfrom
jackson-ml:break_long_word

Conversation

@jackson-ml
Copy link
Copy Markdown

TextFrame.fit_text() currently crashes when the text contains a word that would be longer than the width of the shape at full point size, as it is unable to produce an acceptable line break. Powerpoint is willing to simply line break in the middle of the word in this case, so this imitates that behavior.

Fixes #168.

jmeyerlee added 2 commits August 1, 2018 11:29
… a word that would not be able to fit within a single line at the full font size.
also fixed a bug putting a space at the start of a line.
@jackson-ml jackson-ml changed the title Fixed the TextFrame.fit_text() method crashing on long words Fix: #168 TextFrame.fit_text() method crashing on long words Aug 1, 2018
@jackson-ml jackson-ml changed the title Fix: #168 TextFrame.fit_text() method crashing on long words fix: #168 TextFrame.fit_text() method crashing on long words Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant