-
Notifications
You must be signed in to change notification settings - Fork 22
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
Long Text Entry Crash #9
Comments
I ran into this issue with Firkraag, Cunning Instigator as well. Currently unable to test your most recent fix since I'm running into a |
Ok, so after resolving my dependency issue by running Error was as follows:
|
- Fixed long text entry crash, see Issue #9. Deprecated fix_length arg - Silvan Extended Template: Added more support for colorless cards - New helper function `check_fonts()`, pass a list of fonts to check if they exist in Photoshop - Added optional args for layer and reference to align, align_vertical, align_horizontal - Deprecated ability words list, implemented new regex to detect these scenarios automatically - Moved re.compile for card_info function to top of core for minor execution time improvement on large operations
I keep forgetting to make commits but I finally designed a robust fix for the long text entry crash a couple days back, just pushed changes so pick them up and let me know if that does it for ya! I tested Nalia de'Arnise on Expedition template and working on my end. Here's an outline of how the fix works:
I realized the crash happens during The reason I chose to use the height of the reference + 1% is because this scaling is being done before the text is formatted. The reason we scale after formatting is to account for any size loss caused by formatting the symbols and such. I wanted to leave just enough headroom to keep outside the bounds and the traditional |
Awesome, that worked! Results uploaded to my drive. |
This appears to be fixed, so I'm going to close this. Will reopen if another card ends up crashing in the future! |
This bug has been a long existing Photoshop issue, I'm going to track our test cases here and continue developing an elegant long term solution.
Describe the bug
Photoshop crashes when text is inserted that overly exceeds the bounds of a TextLayer paragraph box.
To Reproduce
Try to render Animate Dead for example (as of Proxyshop v1.1.2)
Your system:
This bug occurs regardless of Python or Windows version, and has been demonstrated on all Photoshop versions compatible with Proxyshop.
The Solution:
Previously a solution was added that decreases the font size by .75 if the oracle text being entered is over 300 characters. We now know that for even longer texts such as Animate Dead (420 characters) this number is not enough. As of the developmental Proxyshop (planned 1.1.3 release) I have adjusted this behavior to scale down by 1 pt (EDIT: Increased from .75 to fix Reckoner Bankbuster) for every 100 characters above 200 the text is. This fixes Animated Dead, but we need to continue to catalog known failed cards from the past and ensure this issue is fixed in all cases. I will catalog known bugged cards below and whether this solution solves the issue.
The text was updated successfully, but these errors were encountered: