Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 2637 #2677

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Fix 2637 #2677

merged 2 commits into from
Sep 20, 2023

Conversation

JorjMcKie
Copy link
Collaborator

Fixing #2637:
In Page.insert_textbox, when the last word of a line won't fit in the line buffer, we did not increase the line position. This is now handled correctly.

Other changes:
Support variable setting of character border widths for insert_text() / insert_textbox(). This is a factor to be multiplied with the font size. Default is 0.05 (read: 5% of the fontsize). This value is relevant for text rendering modes 1 and 2 only.

Text extraction mode "words" support a new keyword "delimiters". This is a preparatory change in utils.py and functional only after more changes to come (in __init__.py).

Immunize against wrong path specifications by checking whether the current path dictionary actually exists.
Correctly compute the filled area (or overflow) of method Shape.insert_textbox.

Also support variable setting of character border widths for insert_text() / insert_textbox(). This is a factor to be multiplied with the font size. Default is 0.05 (read: 5% of the fontsize). This value is relevant for text rendering modes 1 and 2 only.

Prepare "words! extraction for variable delimiters. This is only functional until after changes in __init__.py.
@JorjMcKie JorjMcKie merged commit 7074efe into main Sep 20, 2023
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2023
@JorjMcKie JorjMcKie deleted the fix-2637 branch September 28, 2023 12:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant